Is there a way to 'complete' a task in a lifecycle, programmatically?

Emil_R
edited June 20, 2023 in AppWorks #1

Hi there -

Thanks to everyone who has engaged with my forum posts, it is appreciated. I have one last question as I wrap up an approval workflow for our accounting team.

Is there a way to programmatically 'complete' a task in a lifecycle? The only option I'm able to progress a task forward is by clicking 'complete'

Currently, we have this flow:

  1. User claims a task
  2. User must click approve or reject (which triggers a rule, adjusting a boolean value we read in our BPM, which acts as the 'approval' status i.e. approved = 1, rejected = 0)
  3. User HAS to click complete decision (which is 'Complete' task in the LifeCycle Task)

We could foresee this being a bit confusing for our users, but if it is the only way, we will proceed. This leads me to my question… is there a way to programmatically 'COMPLETE' a task? When I take a look at creating a rule, AppWorks does not allow you to adjust the the task state with a rule.

I have also taken a look into using the 'update' LifecycleTask web service, but I cannot find any documentation nor can I get the web service to work and update the state, so the task is progressed in the BPM.

Ideally when a user clicks APPROVE or REJECT, it would proceed and complete the task. Having a user click " claim—>approve or reject—> complete " seems like it would be a bit confusing and it is a bit frustrating that AppWorks does not let us modify this at all.

Does anyone have any ideas or thoughts? Any help/pointers would be appreciated. Big thanks!

Comments