Method

POST

Parameters

A JSON object with the following properties:

NameValueDescription
sourceActivityIdsArrayThe activity ids from the source process definition being mapped.
targetActivityIdsArrayThe activity ids from the target process definition being mapped.
updateEventTriggerBoolean Configuration flag whether event triggers defined are going to be updated during migration.

|sourceActivityIds|Array|The activity ids from the source process definition being mapped.|targetActivityIds|Array|The activity ids from the target process definition being mapped.|updateEventTrigger|Boolean| Configuration flag whether event triggers defined are going to be updated during migration.
|Name|Value|Description
|——-
|sourceActivityIds|Array|The activity ids from the source process definition being mapped.
|targetActivityIds|Array|The activity ids from the target process definition being mapped.
|updateEventTrigger|Boolean| Configuration flag whether event triggers defined are going to be updated during migration.

Result

A JSON object which contains a list of instruction reportsif any errors are detected, other wise it is empty.

The properties of a instruction report are as follows:

Name Value Description
Name Value Description
——-
instruction Object A migration instruction JSON object with the following properties:


|sourceActivityIds|Array|The activity ids from the source process definition being mapped.|targetActivityIds|Array|The activity ids from the target process definition being mapped.|updateEventTrigger|Boolean| Configuration flag whether event triggers defined are going to be updated during migration.
|Name|Value|Description
|——-
|sourceActivityIds|Array|The activity ids from the source process definition being mapped.
|targetActivityIds|Array|The activity ids from the target process definition being mapped.
|updateEventTrigger|Boolean| Configuration flag whether event triggers defined are going to be updated during migration.
|failures|Array|A list of instruction validation report messages.

Response codes

Code Media type Description
200 Request successful. The validation report was returned.
400 application/json In case additional parameters of the request are unexpected, an exception of type InvalidRequestException is returned. See the Introduction for the error response format.

Example

POST /migration/generate

Request Body:

Status 200.

  1. {
  2. "instructionReports": [
  3. {
  4. "instruction": {
  5. "sourceActivityIds": [
  6. "aUserTask"
  7. "targetActivityIds": [
  8. "aUserTask"
  9. "updateEventTrigger": false
  10. },
  11. "failures": [
  12. "failure1",
  13. "failure2"
  14. ]
  15. },
  16. {
  17. "instruction": {
  18. "sourceActivityIds": [
  19. "targetActivityIds": [
  20. "anotherEvent"
  21. ],
  22. "updateEventTrigger": true
  23. },
  24. "failures": [
  25. "failure1",
  26. "failure2"
  27. ]
  28. }
  29. ]