Versions Compared

Key

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

...

Description
Retrieve workflow assignment process view

Parameters

  • callback - a (Optional) A function (in javascript) to call back after invoke this method
  • processId - process Process id

Sample Result

Code Block
{
  "activityId":"12001_9801_service_center_newpkg1_wp1_newpkg1_wp1_act2",
  "processVersion":"4",
  "activityDefId":"newpkg1_wp1_act2",
  "processId":"9801_service_center_newpkg1_wp1",
  "assigneeId":"admin",
  "description":"",
  "processName":"Service Center Escalation Process",
  "dateCreated":"10-09-2009 10:45",
  "participant":"Level 2",
  "processDefId":"service_center#4#newpkg1_wp1",
  "variable":[
    {"relatedTo":""},
    {"ticketId":""},
    {"status":""},
    {"complexity":""},
    {"priority":""}],
  "activityName":"Update Ticket Level 2"
}

...

  • callback - a function (in javascript) to call back after invoke this method
  • activityId - activity id

Sample Result-

Code Block

{
    "assignment": "1079_563_crm_process1_approve_proposal",
    "status": "accepted"
}

...

web/json/workflow/assignment/withdraw/(:activityId)

...

Description
Withdraw activity

Parameters

  • callback - a (Optional) A function (in javascript) to call back after invoke this method
  • activityId - activity id

...

  • callback - a function (in javascript) to call back after invoke this method
  • activityId - activity id
  • variable - variable
  • value - value

Sample Result-

Code Block

{"status":"variableSet"}

...

web/json/workflow/assignment/completeWithVariable/(:activityId)

...

Description
Set activity variable
Variables can be passed as parameters with the var_ prefix

Parameters

  • callback - a (Optional) A function (in javascript) to call back after invoke this method
  • activityId - activity id
  • var_(workflow variable id) - (Optional) Set workflow variable value

Sample Code

Code Block
/web/json/workflow/assignment/completeWithVariable/11079_1_act563_crm_process1_approve_proposal?var_id=123&var_status=approved

Sample Result

Code Block
{
    "activityId": "21221079_2117563_CRMcrm_newpkg1process1_wp1_newpkg1_wp1_act1approve_proposal",
    "assignment":"org.joget.workflow.model.WorkflowAssignment@1b99f74 "admin",
    "nextActivityId": "1093_563_crm_process1_send_proposal",
    "processId": "2117563_CRMcrm_newpkg1_wp1process1",
    "status": "completed"
}

...

web/json/workflow/assignment/complete/(:activityId)

...

Description
Complete activity

Parameters

  • callback - a (Optional) A function (in javascript) to call back after invoke this method
  • activityId - activity Activity id

Sample Result

Code Block
{
    "status":"completed"activityId": "1079_563_crm_process1_approve_proposal",
    "assignment": "admin",
    "processIdnextActivityId": "40011093_3731563_mdeccrm_v1002process1_mdec_wp1_mdec_wp1_worksend_proposal",
    "processId": "563_crm_process1",
    "status": "completed"
}

...

web/json/workflow/variable/list/(*:processId)

...

Description
Retrieve workflow variable of a process. Only supported in Joget Workflow v2.0.0 and above. 

Parameters

  • callback - a (Optional) A function (in javascript) to call back after invoke this method
  • processId - process Process id

Sample Result

Code Block
{
  "processId":"9801_service_center_newpkg1_wp1",
  "variable":
  [
    {"relatedTo":""},
    {"ticketId":""},
    {"status":""},
    {"complexity":""},
    {"priority":""}
  ]
}

...