REST API - setMigrationRules

The table summarizes the REST API - setMigrationRules.

Request

Format
POST <baseurl>/process/set/migrationrules
Body migrationRules element: Specifies the process instance migration rules.

Response

JSON If successful, returns 204 No Content in the response header, and OK in the response body.
XML If successful, returns 204 No Content in the response header, and OK in the response body.

Example

Request
POST <baseurl>/process/set/migrationrules
Request body
{
"xml-fragment": {
"@xmlns:proc": "http://www.tibco.com/bx/2009/management/processManagerType",
"proc:module": {
"@name": "/RestMigration/Process Packages/RestMigration.xpdl",
"@version": "1.0.0",
"proc:process": [
{
"@name": "RestMigrationProcess",
"proc:migrate":
{ "@fromTask": "UserTask", "@toVersion": "1.0.1", "@description": "Migration Point A" }
}
]
}
}
}
Response
OK