Create a case on a specific task
I was using the REST API and done the create case examples using the information on this link:
Example 1 created the case.
Example 2 created the case with variables.
I then created a simple workflow with two tasks.
"Step 1" and "Step 2"
And thought that maybe there is a way to create a case starting on a specific task?
How's the syntax?
Thanks in advance,
On what basis would you start at a specific task? What decision would have to be satisfied to do this?
OK, apologies I was travelling for a couple of days.
I see what you mean now, what you actually mean is you want to restart a failed case. Starting at a particular task is something completely different and implies a non-failed process.
Is it possible to restart a failed case - in Subscription Yes and it comes as an existing function in the software. In Community it is not available as a default function, however you could write your own restart mechanism using the appropriate API functionality
retryTask(long) - Method in interface org.bonitasoft.engine.api.ProcessRuntimeAPI Reset the state of a failed FlowNodeInstance to its previous state and then execute it.
As you can see the correct terminology is to Retry a failed Task - when in a case you shouldn't actually bypass it you should always try to retry it.
As for REST - no you would have to create your own to call the API to retry,
Hope this helps
PS: As this reply offers an answer your question, and if you like it, please Mark UP and/or as Resolved.
Thank you for your very detailed answer.
So it's only possible to retry a task.
A complete bypass to another task of the process is completely unavailable, right?
Is there something that I could consult to see what API is only available for Subscription and above?