In my application I am using the Process Engine REST API to start a process instance:
I would like the process instances my application starts to be functional (e.g., show details, show form, show diagram, cancel process) in Flowable Task.
I can get the process instances to be visible in Flowable Task by setting the initiator
variable:
const processModel = {
'name' : this.selectedItem.name,
'processDefinitionId' : this.selectedItem.id,
'variables': [
{
'name': 'initiator',
'type' : 'string',
'value': 'flowable',
'scope' : 'local'
}
]
};
Where ‘flowable’ is the Flowable Admin User’s user id.
# Default Flowable Admin Accounts - see: flowable.ldif
flowable.idm.app.admin.user-id=flowable
flowable.idm.app.admin.password=test
flowable.idm.app.admin.first-name=
flowable.idm.app.admin.last-name=Administrator
flowable.idm.app.admin.email=admin@serendipity.org.au
flowable.common.app.idm-admin.user=flowable
flowable.common.app.idm-admin.password=test
# Flowable (UI Applications) Admin User
dn: sn=Admin, ou=users,dc=flowable,dc=org
changetype: add
objectclass: inetOrgPerson
cn: Flowable
sn: Admin
mail: admin@serendipity.org.au
uid: flowable
userPassword: test
However, the ‘Cancel process’ button isn’t visible?
It seems that Flowable Task is also setting the startedBy variable:
startedBy: {id: "flowable", firstName: "Flowable", lastName: "Admin", email: "admin@serendipity.org.au",…}
Is this supported by the Process Engine REST API?