Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
READY TO BE PUBLISHED (remember to update the Excerpt include links)
This article describes the Identity Manager Process REST API which can be used to control processes in Smart ID Identity Manager.
The API provides a simple RESTful interface for starting and proceeding processes and for exchanging data with it. The Identity Manager Process REST API is part of the Identity Manager main application and will be available automatically after starting the server that hosts the application.
Expandall |
---|
How to use the Identity Manager Process REST API
See the following topics for more information on how to use the Identity Manager Process REST API:
Expand | ||
---|---|---|
| ||
The REST API is secured by default. Therefore it is not possible for intruders to access data and functionality of the REST interface. The default configuration uses our internal authentication profile to authenticate the user and to perform the authorization. By default, the HTTP Basic Authentication is used. The client calling our service is responsible to fill the Authorization Header of the HTTP request.
To configure the authentication process and the security settings, see the Spring Security filter settings in the security-beans.xml. |
Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
The root context is the base context for all webservice requests. Specific requests must construct a path consisting of this base context plus the specific functionality.
Depending on the configuration of your server and authorization mechanism, the protocol can be HTTP or HTTPS. For more information, see the previous section. Make sure you specify the right port for your application server. |
Expand | |||||||
---|---|---|---|---|---|---|---|
| |||||||
To select the tenant id, append the tenant id to the URL, that is, the primary key of the tenant in the database:
|
Expand | ||
---|---|---|
| ||
By default, no secrets are resolved when querying for example the data map of a certain process step. If the user which calls the REST API has the EXECUTION permission |
Expand | ||
---|---|---|
| ||
To run a command on a specific task, you will need a To find the Or, if you rather want to get the information from the database, look into the table ACT_RU_TASK in the column Task_Def_Key_. Don´t use ID_. |
Available commands
Start process
Expand | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description Starts the process defined by URL
where Method POST Content Type
Header Parameters
Request Parameters Multiple Request Parameters can be concatenated with "&"
The request body can be used to fill the data map for the process which shall be started. The form should be like:
Response
Example responses
|
Execute task
Expand | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||
Description Executes a task for a process instance. The process instance for which the task should be executed is given by the passed processInstanceId. The task to execute is given by the passed task id. URL
To find the task id, look up the id of the task in the BPMN 2.0 process definition. Method POST Content Type
Header Parameters
Response
Example responses
|
Obtain task data
Expand | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||
Description Obtains the data map a the start of a task for a given process instance. The process instance is given by the parameter URL
Method GET Header Parameters
Example response
|
Start process, poll for data and execute task
Expand | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description This command will start a process. The process is expected to reach a user task without further interaction. Also,the user task is intended merely as a waiting point and must not make any changes. The command will try to fetch the process data before the user task and then execute the user task (like clicking "Next"). URL
where To find the task id, look up the id of the task in the BPMN 2.0 process definition. Method POST Content Type
Header Parameters
Request Parameters Multiple Request Parameters can be concatenated with "&"
The request body can be used to fill the data map for the process which shall be started. The form should be like:
Response
Example responses
|
Obtain task data and execute task if data available
Expand | |||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||
Description Obtains the data map at the start of a task for a given process instance. If data could be obtained, the task will then be executed (like clicking "Next"). The process instance is given by the parameter URL
Method POST Header Parameters
Response If no data is available, you get the following status code:
Example responses
|
This article is valid for Smart ID 22.04.1 and later.