Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
You will need to probably accept the assignment first before "assignmentComplete" it.
if (!assignment.isAccepted()) { workflowManager.assignmentAccept(assignment.getActivityId()); }
Thank you
Hi everybody.
I'm developing a very simple AuditPlugin that takes some messages from a JMS queue and have to complete an activity with some values based on the jms messages.
I'm having troubles with the assignmentComplete() method becouse when I try to complete a given activity, joget logs an error like this:
org.enhydra.shark.api.client.wfmodel.TransitionNotAllowed: Activity [Process Id=29_workflow_patient_enrolment_process, Id=138_29_workflow_patient_enrolment_process_enrollmentOnSHC, ba=null, ActDefId=enrollmentOnSHC] - current state is open.not_running.not_started, can't change to state closed.completed!
What I have to do in order to complete an assignment from a plugin?
Here is the method that does the job:
Where source is an existing username in JOGET. For the moment I'm not using the hashmap with workflow variables, so I'm using the simple method assignmentComplete(String activityId)
Thanks in advance