Incoming Webhooks
Overview
WorkflowGen features an incoming webhook application that allows users to interact with WorkflowGen from external sources by exchanging JSON payloads using HTTP POST requests. The application supports multiple types of operations, such as creating a new request, completing an action, and some process deployment operations like creating a new process from an XPDL.
Technical requirements
In addition to the standard WorkflowGen installation, the following components are required:
Visual C++ Redistributable ✏️ Note: This library is required if you encounter the error
The specified module could not be found
regarding theedge
andedge-js
libraries when accessing the/wfgen/graphql
,/wfgen/hooks
, or/wfgen/scim
web apps.
For information on the installation procedure, see the WorkflowGen Technical Guide.
Configuration
Maximum query content length
The maximum query content length for incoming webhooks can be set by configuring the maxAllowedContentLength
property in the WorkflowGen web.config
file. The following example shows how to configure this property as 1 MB (note that the value should always be specified in bytes, so the value in the example is 1,024,000 bytes). The default value is 30,000,000 bytes.
Input file allowed folders
You can configure the local or remote folder paths where files used by FILE type parameters are located using the Input file allowed folders setting In the Webhooks section on the Configuration Panel Integration tab. (Alternately, you can add the folder names separated by commas to the HooksInputFileAllowedFolders
parameter in the WorkflowGen web.config
file.)
When using file uploads, you don't need to include the original file folder.
To disallow input file allowed folders, leave this field empty (or the parameter undefined). To allow certain folders only, enter comma-separated values according to the table below:
Value | Description |
Empty | No folders allowed |
| All folders allowed |
| All folders on drive |
| All subfolders in a specific folder |
| All
|
| Specific folder only |
Input file allowed HTTP URLs
You can configure allowed HTTP URLs for input files using the Input file allowed HTTP URLs setting in the Webhooks section on the Control Panel Integration tab. (Alternately, you can add the folder names separated by commas to the HooksInputFileAllowedHttpUrls
parameter in the WorkflowGen web.config
file.)
To disallow file uploads using HTTP and/or HTTPS URLs, leave the field empty (or the parameter undefined). To allow certain URLs only, enter comma-separated values according to the table below:
Value | Description |
Empty | No HTTP or HTTPS URLs allowed |
| All HTTP and HTTPS URLs allowed |
| HTTPS URLs only |
| HTTP URLs only |
| HTTP from a specific domain only |
| HTTP from a specific folder only |
| All files and folders whose names start with
|
| Specific file only |
Maximum input file size
In the Webhooks section on the Integration tab in the Administration Module Configuration Panel, enter the maximum input file size in kilobytes in the Maximum input file size (kB) field.
Alternately, you can set the maximum input file content size in kilobytes as the value of the HooksMaxInputFileSize
parameter in the WorkflowGen web.config
file.
Maximum input file content size
When working with FILE type parameters content encoded in base64, you must enter the maximum input file content size in kilobytes in the Maximum input file content size (kB) field in the Webhooks section on the Integration tab in the Administration Module Configuration Panel.
Alternately, you can set the maximum input file content size in kilobytes as the value of the HooksMaxInputFileContentSize
parameter in the WorkflowGen web.config
file.
FILE type data content is only recommended for small files under 1 MB.
Performance tuning
WorkflowGen is installed with the following default webhooks settings (located under iisnode
in \wfgen\hooks\web.config
):
With these settings, only one node.exe
instance will handle HTTP requests. This should be sufficient in most cases, but you can optimize performance if needed by adjusting these values based on the number of potential concurrent requests.
Creating an incoming webhook application
To create a new incoming webhook application in your WorkflowGen application, click the Add Application button on the Applications page. Then, choose Incoming webhook from the Application type drop-down list, enter the Name and Description, and click Save.
The Applications page will now display your incoming webhook application information, including the application URL. This is the URL you should use to send WorkflowGen incoming webhooks. The last component of this URL corresponds to a token that WorkflowGen will use to identify your incoming webhooks.
You should fill in the Impersonate username textbox with the WorkflowGen username you use to perform your desired operations. Be aware that your impersonated user must have your asked-operation-required rights to complete the action; if not, you will receive a security error on your response payload. As well, if the impersonate username is not set, the workflow engine service default identity will be used (as defined in the Security section on the Integration tab in the Configuration Panel).
The generated URL and its associated token must remain private and not exposed to end-users in client-side (in JavaScript, for example). You should treat the token with the same level of security as you would a password.
If the token used in the incoming webhook URL is missing or invalid, a
404
status code will be returned. If the associated user is invalid, archived, or inactive, a403
status code will be returned. In both cases, the response will contain a descriptive error message.
Sending data in JSON
The incoming webhook application receives your HTTP POST request payload formatted as a JSON object.
Using the URL provided, you can post HTTP requests from external applications (e.g. Postman) to WorkflowGen in order to execute the available operations in your WorkflowGen application. For operations that require you to provide an object ID, the object ID value can be retrieved by using the GraphQL API. In most cases, object numbers can be used instead of IDs in operation payloads.
In case of an error, you will get a response payload providing error details such as:
curl example
The requests should respect the structure shown in this example, where operation
refers to the name of the operation to execute, and args
contains the input
node that groups all of the request parameters to perform the operation.
To create a new request, the processName
parameter is required. The processVersion
parameter is optional and is used to find the correct process you want to use to create your request.
Request payload:
Response payload:
The response payload will be structured as follows:
Parameters
Parameter | Description |
| Process name (required) |
| Process version, used to find the correct process you want to use to create the request |
| This parameter will be null if the request creator did not define it in the request payload |
| ID of newly created request |
| Number of newly created request |
| This parameter contains the delegator ID; however, if the request was not created in delegation mode, its value will be null |
| This parameter contains the delegator username; however, if the request was not created in delegation mode, its value will be null |
OpenAPI v2 endpoints
As of version 7.17.0, incoming webhooks now offer a new endpoint that supports the OpenAPI v2 specification for operation definitions and another endpoint for operation execution. This allows for seamless integration with other OpenAPI-ready solutions such as Swagger, Microsoft Flow, Azure Logic Apps and Postman.
Webhook operation definitions
Use this endpoint to retrieve webhook operation definitions based on the OpenAPI v2 specification (in JSON format).
Webhook operation execution
Use this endpoint to execute a webhook operation using HTTP POST, replacing :operation
with the name of the incoming webhook operation (e.g. createRequest
).
Required parameters
:operation
: Name of the incoming webhook operation defined in the URI ✏️ Note: The operation name is not required inside the request payload.x-wfgen-hooktoken
: Webhook token value specified in the HTTP request header, which is the same token value as used in a classic incoming webhooks URLProperties with an asterisk
*
next to their name
Other required or optional parameters specific to the webhook operation might be needed.
Request operations
Create a new request
To create a new request from the webhooks API, make sure that sub-process mode is enabled with public access on the target process. (See the Process form section in the WorkflowGen Administration Guide for more information.)
Request payload:
Response payload:
A parameter's array can be included in the createRequest
operation payload. Be aware that a data with the same name and data type must previously exist in the process for each parameter in the array to store the parameter's value. The following example shows how to send parameters corresponding to the four supported data types (TEXT, NUMERIC, DATETIME, and FILE).
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Process identifier with the pattern |
| String | Process name |
| Int | Process version, used to find the correct process you want to use to create the request |
| Boolean | Indicates if the process is in test |
| Array | Array of parameters (see Parameter definitions) |
| Base64-encoded string | User identifier that is used by the user to perform the mutation on behalf of another person, with the pattern |
Update a request dataset
A request dataset context can be updated by adding a parameter array. In this case a request number or a request ID should be provided.
This operation requires users to have system access to perform it. This can be configured in the System operations allowed users field under Security on the Integration tab in the Configuration Panel.
Request payloads:
Response payload:
For more information on FILE parameter manipulations when sent within incoming webhook payloads, see the File upload section.
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Request identifier with the pattern |
| Int | Request number |
| Array | Array of parameters (see Parameter definitions) |
Cancel a request
You can cancel a request by using the request number or the request ID.
Request payloads:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Request identifier with the pattern |
| Int | Request number |
| Boolean | Indicates if participant members have to be notified |
| Base64-encoded string | User identifier that is used by the user to perform the mutation on behalf of another person, with the pattern |
Delete a request
A request can be deleted by using the request number or the request ID.
Request payloads:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Request identifier with the pattern |
| Int | Request number |
Action operations
Complete an action
To complete an action, provide the request number and the action number, or the action ID.
Request payloads:
Response payload:
To complete an action, a parameter array can be included in the request payload arguments.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Action identifier with the pattern |
| Int | Request number |
| Int | Action number |
| String | Activity name |
| Array | Array of parameters (see Parameter definitions) |
| Base64-encoded string | User identifier that is used by the user to perform the mutation on behalf of another person, with the pattern |
Complete a form action
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Action identifier with the pattern |
| Int | Request number |
| Int | Action number |
| String | Activity name |
| Array | Array of parameters (see Parameter definitions) |
| Base64-encoded string | User identifier used by the user to perform the mutation on behalf of another person with the pattern |
Cancel an action
To cancel an action, provide the request number and the action number, or the action ID. The following conditions must be met:
The viewer and the user (if they don't share the same identity, as in delegation mode) must have access to the request.
The action must be open.
The action must have a cancel or default exception defined in the transition.
The viewer is:
an administrator or process folder manager OR
a supervisor with cancellation rights OR
the action assignee.
Request payloads:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Action identifier with the pattern |
| Int | Request number |
| Int | Action number |
| String | Cancellation type:
|
| Object { String, String } | Exception:
|
| Base64-encoded string | User identifier used by the user to perform the mutation on behalf of another person with the pattern |
Cancel a request's actions by name
All of the actions with the same name in a request can be cancelled at the same time by using their name in this operation payload. The following conditions are met:
The viewer and the user (if they do not share the same identity, as in delegation mode) must have access to the request.
The action must be open.
The action must have a cancel or default exception defined in the transition.
The viewer is:
an administrator or a process folder manager OR
a supervisor with cancellation rights OR
the action assignee.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Int | Request number |
| String | Activity name |
| String | Cancellation type:
|
| Object { String, String } | Exception:
|
| Base64-encoded string | User identifier used by the user to perform the mutation on behalf of another person with the pattern |
Assign an action
To assign an action, provide the request number and the action number, or the action ID; you must also provide the assigneeUserName
or the assigneeId
.
Request payloads:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Action identifier with the pattern |
| Base64-encoded string | User identifier of the person assigned to the action with the pattern |
| Int | Request number |
| Int | Action number |
| Base64-encoded string | User identifier used by the user to perform the mutation on behalf of another person with the pattern |
Cancel an action assignment
To cancel an action assignment, you should provide the request number and the action number, or the action ID.
Request payloads:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Action identifier with the pattern |
| Int | Request number |
| Int | Action number |
| Base64-encoded string | User identifier used by the user to perform the mutation on behalf of another person with the pattern |
End-user operations
Create a new favorite
The incoming webhook application lets users add processes and views to their favorites lists using the process or view IDs.
Request payload:
The above code will create a favorite using the process or view description, but adding a custom description is also possible, as shown in the following example:
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Process or view identifier with the pattern |
| String | Favorite description |
Update a favorite
The incoming webhook application lets users update an existing favorite process or view by using its favorite ID.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Favorite identifier with the pattern |
| String | Favorite description |
Delete a favorite
The incoming webhook application lets users delete an existing favorite process or view from their favorites list by using its favorites ID.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Favorite identifier with the pattern |
Add a comment
The incoming webhook application lets users add comments to requests. This operation requires that the portal comments feature be enabled.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Request identifier on which the comment will be added with the pattern |
| String | New comment message |
Update a comment
Users can update comments if they are administrators, process manager of the process or process supervisor, or standard users who are members of the process participants, have write permissions, and are the comment author. This operation requires that the portal comments feature be enabled.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Comment identifier with the pattern |
| String | Updated comment message |
Remove a comment
The incoming webhook application lets users remove comments from requests. This operation requires that the portal comments feature be enabled.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Comment identifier with the pattern |
Delegation operations
Create a delegation
Standard users can only create delegations for themselves; only administrators can create a delegation for another user. This operation requires that the portal delegation feature be enabled.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | User identifier that is delegating its requests and actions to another person, with the pattern |
| Base64-encoded string | User identifier to whom the requests and actions are delegated from the delegator, with the pattern |
| Base64-encoded string | Process identifier with the pattern |
| Base64-encoded string | Participant identifier, with the pattern |
| DateTime | Indicates the date and time ( |
| DateTime | Indicates the date and time ( |
| Boolean | Indicates if the delegatee should be notified of the delegation |
Update a delegation
Standard users can only update delegations for themselves; only administrators can update a delegation for another user. This operation requires that the portal delegation feature be enabled.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Delegation identifier with the pattern |
| Base64-encoded string | User identifier that is delegating its requests and actions to another person, with the pattern |
| Base64-encoded string | User identifier to whom the requests and actions are delegated from the delegator, with the pattern |
| Base64-encoded string | Process identifier with the pattern |
| Base64-encoded string | Participant identifier, with the pattern |
| DateTime | Indicates the date and time ( |
| DateTime | Indicates the date and time ( |
| Boolean | Indicates if the delegatee should be notified of the delegation |
Delete a delegation
Standard users can only delete their own delegations; only administrators can delete another user's delegations. This operation requires that the portal delegation feature be enabled.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Delegation identifier with the pattern |
Category operations
Create a new category
Only administrators can create a category.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| String | Category name |
| String | Category description |
Update a category
Only administrators can update a category.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| String | Category identifier with the pattern |
| String | Category name |
| String | Category description |
Delete a category
Only administrators can delete a category.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| String | Category identifier with the pattern |
Process folder operations
Create a new process folder
Only administrators can create a process folder.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| String | Process folder name |
| String | Process folder description |
| Base64-encoded string | Process folder manager identifier with the pattern |
Update a process folder
Only administrators and the process folder manager can update a process folder.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Process folder identifier with the pattern |
| String | Process folder name |
| String | Process folder description |
| Base64-encoded string | Process folder manager identifier with the pattern |
Delete a process folder
Only administrators can delete a process folder.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Process folder identifier with the pattern |
Process operations
Create a new process
This operation creates a process from the process properties. The process name, description, and folder identifier or name are required.
Request payloads:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| String | Process access level:
|
| Array of strings | Process categories |
| String | Process description |
| Base64-encoded string | Process folder identifier with the pattern |
| String | Process folder name |
| Base64-encoded string | Process identifier used in new version creation with the pattern |
| String | Process help information email |
| String | Process help information text |
| URI string | Process help information URL |
| Boolean | Indicates if action's associated data is archived when a request is closed |
| Boolean | Indicates if form management is built-in |
| Boolean | Indicates if file content is stored in the database |
| Boolean | Indicates if sub-process mode is enabled |
| Int | Process lead time |
| String | Process lead time duration unit:
|
| Boolean | Indicates if working days/hours are used to compute the lead time |
| Boolean | Indicates if the requester is notified upon request closure |
| String | Process name |
| Boolean | Indicates if the requester is notified upon request closure |
| String | Process state:
|
Create a new process from an XPDL
A process can be created from its XPDL definition.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Boolean | Specifies whether or not to import process participants as global participants (can only be used by users with an administrator profile) |
| Boolean | Specifies whether or not to import global participant associations |
| Boolean | Specifies whether or not to add the current user to process participants |
| Base64-encoded string | Process folder identifier with the pattern |
| String | Process folder name |
| Base64-encoded string | Process identifier used when creating a new version with the pattern |
| String | Process name |
| Boolean | Creates a new version if the process already exists |
| String | Process state:
|
| Boolean | Specifies whether or not to import the process version number from the process definition |
| FileInput | Process definition in XPDL format (see FileInput values) |
Update a process
This operation updates process properties from the process identifier.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Process identifier with the pattern |
| String | Process access level:
|
| Array of strings | Process categories |
| String | Process description |
| Base64-encoded string | Process folder identifier with the pattern |
| String | Process help information email |
| String | Process help information text |
| URI string | Process help information URL |
| Boolean | Indicates if action's associated data is archived when a request is closed |
| Boolean | Indicates if form management is built-in |
| Boolean | Indicates if file content is stored in the database |
| Boolean | Indicates if sub-process mode is enabled |
| Int | Process lead time |
| String | Process lead time duration unit:
|
| Boolean | Indicates if working days/hours are used to compute the lead time |
| String | Process name |
| Boolean | Indicates if the requester is notified upon request closure |
| String | Process state:
|
Update a process from an XPDL
A process can be updated from its XPDL definition. The .xml
file is uploaded by using the multipart file upload feature as shown below.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Process identifier with the pattern |
| Boolean | Specifies whether or not to import process participants as global participants (can only be used by users with an administrator profile) |
| Boolean | Specifies whether or not to import global participant associations |
| Boolean | Specifies whether or not to add the current user to process participants |
| Boolean | Specifies whether or not to import the process version number from the process definition |
| FileInput | Process definition in XPDL format (see FileInput values) |
Delete a process
A process can be deleted by using the process identifier.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Process identifier with the pattern |
Participant operations
Create a new global participant
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| String | Global participant name |
| String | Global participant type:
|
| String | Global participant description |
| Array of Base64-encoded strings | List of directories (identifier) associated to the global participant with the pattern |
| Array of Base64-encoded strings | List of groups (identifier) associated to the global participant with the pattern |
| Array of Base64-encoded strings | List of users (identifier) associated to the global participant with the pattern |
| Array of Base64-encoded strings | List of coordinators (identifier) associated to the global participant with the pattern |
Update a global participant
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Global participant identifier with the pattern |
| String | Global participant name |
| String | Global participant type:
|
| String | Global participant description |
| Array of Base64-encoded strings | List of directories (identifier) associated to the global participant with the pattern |
| Array of Base64-encoded strings | List of groups (identifier) associated to the global participant with the pattern |
| Array of Base64-encoded strings | List of users (identifier) associated to the global participant with the pattern |
| Array of Base64-encoded strings | List of coordinators (identifier) associated to the global participant with the pattern |
Delete a global participant
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Global participant identifier with the pattern |
Add a new process participant profile
To be used with global participant
only.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Process identifier with the pattern |
| Base64-encoded string | Global participant identifier with the pattern |
| String | Supervisor scope query |
| String | Participant role:
|
| Boolean | Indicates if the participant can cancel requests |
| Boolean | Indicates if the participant can read comments |
| Boolean | Indicates if the participant can reassign an action |
| Boolean | Indicates if the participant can view the graphical follow-up |
| Boolean | Indicates if the participant can view statistics |
| Boolean | Indicates if the participant can write comments |
Update a process participant profile
To be used with global participant
only.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Process participant profile identifier with the pattern |
| String | Supervisor scope query |
| String | Participant role:
|
| Boolean | Indicates if the participant can cancel requests |
| Boolean | Indicates if the participant can read comments |
| Boolean | Indicates if the participant can reassign an action |
| Boolean | Indicates if the participant can view the graphical follow-up |
| Boolean | Indicates if the participant can view statistics |
| Boolean | Indicates if the participant can write comments |
Remove a process participant profile
To be used with global participant
only.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Process participant profile identifier with the pattern |
Create a new local process participant
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| String | Local process participant name |
| Base64-encoded string | Process identifier with the pattern |
| String | Local process participant description |
| String | Local process participant type:
|
| Array of Base64-encoded strings | List of directories (identifier) associated to the local process participant with the pattern |
| Array of Base64-encoded strings | List of groups (identifier) associated to the local process participant with the pattern |
| Array of Base64-encoded strings | List of users (identifier) associated to the local process participant with the pattern |
| Array of Base64-encoded strings | List of coordinators (identifier) associated to the local process participant with the pattern |
Update a local process participant
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Local process participant identifier with the pattern |
| String | Local process participant name |
| String | Local process participant description |
| String | Local process participant type:
|
| Array of Base64-encoded strings | List of directories (identifier) associated to the local process participant with the pattern |
| Array of Base64-encoded strings | List of groups (identifier) associated to the local process participant with the pattern |
| Array of Base64-encoded strings | List of users (identifier) associated to the local process participant with the pattern |
| Array of Base64-encoded strings | List of coordinators (identifier) associated to the local process participant with the pattern |
Delete a local process participant
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Local process participant identifier with the pattern |
Application operations
Create an application
Only administrators can create a workflow application.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| String | Application assembly class name |
| String | Application assembly name |
| String | Application content type |
| String | Application context format:
|
| String | Application description |
| Boolean | Application active |
| Boolean | Application default |
| Boolean | Application schema definition embedded |
| String | Application method |
| String | Application name |
| String | Application password |
| String | Application token |
| String | Application type:
|
| String | URL |
| String | Application username |
| String | WSDL |
Update an application
Only administrators can update a workflow application.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Application identifier with the pattern |
| String | Application assembly class name |
| String | Application assembly name |
| String | Application content type |
| String | Application context format:
|
| String | Application description |
| Boolean | Application active |
| Boolean | Application default |
| Boolean | Application schema definition embedded |
| String | Application method |
| String | Application name |
| String | Application password |
| String | URL |
| String | Application username |
| String | WSDL |
Delete an application
Only administrators can delete a workflow application.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Application identifier with the pattern |
Add an application parameter
Only administrators can add a workflow application parameter.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Application identifier with the pattern |
| String | Application parameter data type:
|
| String | Application parameter description |
| String | Application parameter direction:
|
| Boolean | Application parameter default |
| Boolean | Application parameter required |
| String | Application parameter name |
Remove an application parameter
Only administrators can remove a workflow application parameter if it is not associated to any activity and is not required.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Application parameter identifier with the pattern |
Global list operations
Create a global list
The operation creates a global list from the global list's properties. If no input argument is provided, the global list is created with the default values.
Request payloads:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| String | Global list connection name |
| String | Global list connection string |
| String | Global list name |
| Base64-encoded string | Global list manager identifier (global participant) with the pattern |
| Base64-encoded string | Duplicates a global list given its identifier with the pattern |
| String | Global list provider name:
|
| String | Global list select command |
Create a global list from an XML definition
A global list can be created from its XML definition. The .xml
file is uploaded by using the multipart file upload feature as shown below.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| FileInput | Global list definition in XML format (see FileInput values) |
Update a global list
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Global list identifier with the pattern |
| String | Global list connection name |
| String | Global list connection string |
| String | Global list name |
| Base64-encoded string | Global list manager identifier (global participant) with the pattern |
| String | Global list provider name:
|
| String | Global list select command |
Update a global list from an XML definition
A global list can be updated from its XML definition. The .xml
file is uploaded by using the multipart file upload feature as shown below.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Global list identifier with the pattern |
| FileInput | Global list definition in XML format (see FileInput values) |
Delete a global list
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Global list identifier with the pattern |
User and group operations
Create a user
Only administrators can create a user.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Directory identifier with the pattern |
| String | User's login name |
| String | User's password |
| String | Last name (refers to the |
| String | First name (refers to the |
| String | Email address |
| Boolean | Indicates if the user has an |
| Boolean | Indicates if the user account is |
| Boolean | Indicates if the user account is managed by the directory synchronization |
| String | Default language in |
| Int | Default time zone identifier, e.g. |
| String | City |
| String | Common name (refers to the attribute |
| String | Company |
| String | Country |
| String | Department |
| String | Distinguished name (refers to the |
| String | Employee number |
| String | Employee type |
| String | Extended attribute 1 |
| String | Extended attribute 2 |
| String | Extended attribute 3 |
| String | Extended attribute 4 |
| String | Extended attribute 5 |
| String | Fax number |
| String | User's initials |
| String | Job title |
| String | LDAP Active Directory path (refers to the |
| Base64-encoded string | Manager's identifier with the pattern |
| String | Mobile phone number |
| String | Office phone number |
| String | Pager number |
| String | Personal title |
| String | Phone number |
| String | Postal address |
| String | Zip or postal code |
| String | State, province, or county |
| String | System identifier (refers to the |
Update a user
Only administrators can update a user.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | User identifier with the pattern |
| Base64-encoded string | Directory identifier with the pattern |
| String | User's login name |
| String | User's password |
| String | Last name (refers to the |
| String | First name (refers to the |
| String | Email address |
| Boolean | Indicates if the user has an |
| Boolean | Indicates if the user account is |
| Boolean | Indicates if the user account is managed by the directory synchronization |
| String | Default language in |
| String | Preferred language in |
| Int | Default time zone identifier, e.g. |
| Int | Preferred time zone identifier, e.g. |
| String | City |
| String | Common name (refers to the |
| String | Company |
| String | Country |
| String | Department |
| String | Distinguished name (refers to the |
| String | Employee number |
| String | Employee type |
| String | Extended attribute 1 |
| String | Extended attribute 2 |
| String | Extended attribute 3 |
| String | Extended attribute 4 |
| String | Extended attribute 5 |
| String | Fax number |
| String | User's initials |
| String | Job title |
| String | LDAP Active Directory path (refers to the |
| Base64-encoded string | Manager's identifier with the pattern |
| String | Mobile phone number |
| String | Office phone number |
| String | Pager number |
| String | Personal title |
| String | Phone number |
| String | Postal address |
| String | Zip or postal code |
| String | State, province, or county |
| String | System identifier (refers to the |
Delete a user
Only administrators can delete a user.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | User identifier with the pattern |
Add groups to a user
Only administrators can add groups to a user.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | User identifier with the pattern |
| Array of Base64-encoded strings | List of groups (identifier) associated to the user with the pattern |
Remove groups from a user
Only administrators can remove groups from a user.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | User identifier with the pattern |
| Array of Base64-encoded strings | List of groups (identifier) associated to the user with the pattern |
Create a group
Only administrators can create a group.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Directory identifier with the pattern |
| String | Group's name |
| String | Group's code |
| String | Common name (refers to the |
| String | Description |
| String | Distinguished name (refers to the |
| String | Email address |
| Boolean | Indicates if the group is managed by the directory synchronization |
| String | LDAP Active Directory path (refers to the |
| String | Query used to select and filter group members from users in the database |
| String | System identifier (refers to the |
Update a group
Only administrators can update a group.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Group identifier with the pattern |
| Base64-encoded string | Directory identifier with the pattern |
| String | Group's name |
| String | Group's code |
| String | Common name (refers to the |
| String | Description |
| String | Distinguished name (refers to the |
| String | Email address |
| Boolean | Indicates if the group is managed by the directory synchronization |
| String | LDAP Active Directory path (refers to the |
| String | Query used to select and filter group members from users in the database |
| String | System identifier (refers to the |
Delete a group
Only administrators can delete a group.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Group identifier with the pattern |
Add users to a group
Only administrators can add users to a group.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Group identifier with the pattern |
| Array of Base64-encoded strings | List of users (identifier) associated to the group with the pattern |
Remove users from a group
Only administrators can remove users from a group.
Request payload:
Response payload:
Properties
Property | Type | Description |
| String | Client mutation identifier |
| Base64-encoded string | Group identifier with the pattern |
| Array of Base64-encoded strings | List of users (identifier) associated to the group with the pattern |
Parameter definitions
These parameters define single data values used in the Create a new request, Update a request dataset, Complete an action, and Complete a form action operations.
Operation values
Property | Type | Description |
| DateTime | Parameter datetime value |
| String | Parameter name |
| Float | Parameter numeric value |
| String | Parameter text value |
| FileInput | Parameter file value (see FileInput values) |
FileInput values
Property | Type | Description |
| Base64-encoded string | File content |
| String | File content type |
| String | File description |
| String | File name |
| Int | File size in bytes |
| DateTime | Identifies the date and time ( |
| Upload | File upload |
| URI string | File URL |
File upload
As of version 7.2.0, the incoming webhook application supports the fileValue.updatedAt
, fileValue.content
, and fileValue.url
fields when sending FILE parameters (as shown in the previous example).
The fileValue.updatedAt
field should use the ISO 8601 date format.
File content
The fileValue.content
field should contain the file content encoded in base64. In this case, the fileValue.url
field is not required. You must set the maximum input file content size (see the Configuration section above for instructions on how to set these).
File URL
The fileValue.url
field contains the file URL. When working with FILE parameters, you must set the input file allowed folders and the maximum input file size (see the Configuration section above for instructions on how to set these).
You can also prevent file uploads using HTTP and/or HTTPS URLs setting the Input file allowed HTTP URLs in the Webhooks section on the Integration tab in the Administration Module Configuration Panel (see Input file allowed HTTP URLs in the WorkflowGen Administration Guide).
The following path patterns are supported:
Local file should use the File URI scheme:
Public file URL:
File URL:
Multipart file upload
Incoming webhooks support multipart file uploads for the following mutations:
createRequest
completeAction
completeFormAction
updateRequestDataset
createProcessFromXpdl
updateProcessFromXpdl
createGlobalListFromXmlDefinition
updateGlobalListFromXmlDefinition
📌 curl example for a single upload
The content type should be
multipart/form-data
.The
payload
field is required and contains the operation and its arguments.input.parameters[X].fileValue
should contain anuploadMap
whose value is the(\"fileValue\": {\"uploadMap\":\"1\" })
key of the file to be uploaded.The key should be an alphanumeric string that matches the file key (
"1"
in the above example).For each
uploadMap
declared, a file with the same key must be attached.
Each file to be uploaded should contain the alphanumeric key and the file path (
"1=@C:\test1.txt"
).Each attached file must match an
uploadMap
.The files should follow the
payload
part.
📌 Curl example for multiple uploads
Limits
The maximum number of uploads in the same request is 30.
The maximum file upload size is set in the
HooksMaxInputFileSize
configuration parameter.
The multipart/form-data
content type is only advised for HTTP requests with file uploads. If the fileValue.name
, fileValue.description
, fileValue.contentType
, and fileValue.size
properties are not defined, they will be set from the uploaded file information; otherwise, they will take the values defined the payload.
Delegation mode
Some of these operations can be done in delegation mode, by adding the onBehalfOfUserName
(delegator username) or the onBehalfOf
(delegator ID) arguments to the request JSON payload, such as in the following example:
Request payloads:
In this case, the response payload will also contain the onBehalfOf
and onBehalfOfUserName
arguments.
In the case of CancelActionAssignment
and UpdateRequestDataset
operations, the delegation mode is not supported.
clientMutationId
clientMutationId
clientMutationId
is an optional argument that can be used by the requester to identify the execution of an operation. Its value is defined in the input payload (e.g. a UUID). If defined, the same value is returned by the operation.
Request payload:
Response payload:
Known limitations
For file type data parameters, the URL must start with file://
, and the path has to be available to the WorkflowGen server.
Performance optimization
The value of the nodeProcessCountPerApplication
setting is set to 0
by default for the best performance in Node.js applications. This creates one node process based on the number of virtual processors that are configured. You can change this value at any time to a custom number of node processes; for example, nodeProcessCountPerApplication=2
will create two node processes independently of the number of virtual processors.
For more information, see the Best practices and troubleshooting guide for node applications on Azure App Service Windows Microsoft article.
Last updated