Process modeler SDK
The process modeler SDK is available in any input or output variables in the process modeler, It allows users access resources from process and execute complexe computational in the instance run time.
The SDK can be accessed trought the SF variable.
The SDK has the following attributs
In the following sections we will explicit each attribute and the allowed methods.
#
1 - UtilsThe utils object has the methods that will allow you to
#
nextValue#
DescriptionIs a function that generate an incremental number based on given string
#
Examples#
axios#
DescriptionAxios is a Promise based HTTP client for the browser and node.js Lean more See the official documentation
#
Examples#
2 - Collection#
insertMany#
DescriptionAllow to insert an array of json in to a collection
#
Examples#
insertOne#
DescriptionAllow to insert a json in to a collection
#
Examples#
findOne#
DescriptionReturns one document that satisfies the specified query criteria . If multiple documents satisfy the query, this method returns the first document.
#
Examples#
find#
DescriptionReturns all the documents that satisfies the specified query criteria .
#
Examples#
updateOne#
Descriptionupdate the first document that satisfies the specified query criteria .
#
Examples#
update#
Descriptionupdate all the documents that satisfies the specified query criteria .
#
Examples#
count#
DescriptionReturns the count of documents in the collection.
#
Examples#
3 - Users#
getUsersinGroup#
DescriptionGet all users in a given group
#
Examples#
getUsersInGroupList#
Descriptionget the users who exist in certain groups.
#
Examples#
getUserById#
DescriptionGet user information using his id.
#
Examples#
getUserByMail#
DescriptionGet user information using his email.
#
Examples#
updateUserById#
DescriptionUpdate user information using his ID.
#
Examples#
updateUsersEach#
DescriptionUpdate a list of users individualy : to each user their own payload.
#
Examples#
4 - Files#
getFileContentById#
DescriptionGet the content of a file using his ID
#
Examples#
5 - Sql#
insertOne#
DescriptionInsert a row into your SQL Table
#
Examples#
insertMany#
DescriptionInsert an array of rows into your SQL Table
#
Examples#
findOne#
DescriptionFind data in your SQL table.
#
Examples#
find#
DescriptionFind all rows in your SQL table that match a certain criteria.
#
Examples#
update#
DescriptionUpdate data in your database.
#
Examples#
delete#
DescriptionDelete rows from your database.
#
Examples#
count#
Descriptioncount rows in your database.
#
Examples#
execute#
DescriptionExecute custom/complex statements on your database.