Change statuses
The BPMN block used for changing statuses for objects in Accton during business process for different users
Implementation type
Connector
Connector ID
http-connector
Connector inputs
headers
Map
method
POST
payload script example
JSON.stringify({
{
execution_id: execution.getId(),,
stage:"stage text",
is_completed: bool,
payload: [
{role:"owner", status: "approval_pending"},
{role:"steward", status: "published"},
{role:"tech", status: "published"},
{role:"expert", status: "published"},
{role:"others", status: "published"},
{role:"author", status: "approval_pending"},
{role:"invoker", status: "approval_pending"},
{role:"subscriber", status: "approval_pending"}]
}
});
where
- execution_id - id of runtime process, defines execution context in Camunda
- stage - is the name of process step to display in the monitoring table in the Accton admin panel
- is_completed - is the flag to define the finish step of process for the monitoring table in the Accton admin panel
- payload - is the array of roles and statuses:
- role - id the name of user role,
- "owner" - is the key of Accton user role; described in the admin panel Roles tab;
- status - is the option of statuses list, which will be display on the object view in Accton,
- "draft" - is the status value that will be shown for the role in Accton on the object view page;
- role - id the name of user role,
Available roles, using in business processes:
- owner
- steward
- tech_steward
- subscriber
- expert
- analyst
- etl
- bi
- invoker - doesn't present in Roles list, defined automatically after business process start
- author - doesn't present in Roles list, defined automatically after object creation
- others - doesn't present in the Roles list; this key defines the users in the system who don't relate with the current entity
- assignee - doesn't present in Roles list; can be used in business process and doesn't relate to the object obviously
Available statuses:
- published
- approval_pending
- under_implementation
- draft
- expertise
- permitted
- request_open
- rejected
- testing
- description_update
- sent_to_publish
- mockup_development
- mockup_approved
- final_approval
- assigned
- finished
url script
execution.getVariable('domain') + '/api/bp/status';