Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
{
    "apps": [{
        "id": "crm",
        "name": "CRM",
        "version": 1,
        "processes": [{
            "id": "crm#1#process1",
            "processVersion": "1",
            "appVersion": 1,
            "name": "Proposal Approval Process",
            "idWithoutVersion": "process1",
            "url": "/jw/web/client/app/crm/1/process/process1?start=true"
        }]
    }]
}

/web/json/monitoring/activity/start/(:processId)/(:activityDefId)

URL
/web/json/monitoring/activity/start/(:processId)/(:activityDefId)

Method
HTTP POST

Description
Start a specific activity for a running process instance.

Parameters

  • callback - a function (in javascript) to call back after invoke this method
  • processId - running process instance id
  • activityDefId - activity definition id of the activity to start
  • abortCurrent - optional parameter, set to true to abort other current running activities

Sample Result

Code Block

{"result":true,"activityDefId":"wp1_act3","processId":"11501_Human_Resource_WF_01_Human_Resource_WF_01_wp1"}

/web/json/monitoring/activity/abort/(:processId)/(:activityDefId)

URL
/web/json/monitoring/activity/abort/(:processId)/(:activityDefId)

Method
HTTP POST

DESCRIPTION
Abort a running activity in a process instance

Parameters

  • callback - a function (in javascript) to call back after invoke this method
  • processId - running process instance id
  • activityDefId - activity definition id of the activity to abort

Sample Result

Code Block

{"activityDefId":"wp1_act1","status":"aborted","processId":"11501_Human_Resource_WF_01_Human_Resource_WF_01_wp1"}

/web/json/monitoring/process/copy/(:currentProcessId)/(:newProcessDefId)

URL
/web/json/monitoring/process/copy/(:currentProcessId)/(:newProcessDefId)

Method
HTTP POST

DESCRIPTION
Start a new process while copying variables, form data and running activities from a previous running process instance.

Parameters

  • callback - a function (in javascript) to call back after invoke this method
  • currentProcessId - current running process instance id to copy from
  • newProcessDefId - process definition id of the new process to start
  • abortCurrent - optional parameter, set to true to abort the current running process

Sample Result

Code Block
 {"processId":"11502_Human_Resource_WF_01_Human_Resource_WF_01_wp1","processDefId":"Human_Resource_WF_01#1#Human_Resource_WF_01_wp1","activities":["10308_9802_Human_Resource_WF_01_Human_Resource_WF_01_wp1_wp1_act1","10309_9802_Human_Resource_WF_01_Human_Resource_WF_01_wp1_wp1_act2"]}

...