Create a case on a specific task

1
0
-1

Hi all,

I was using the REST API and done the create case examples using the information on this link:
http://documentation.bonitasoft.com/6.x-7.2/bpm-api-1#task

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,
Diana

Comments

Submitted by Sean McP on Wed, 05/17/2017 - 23:10

On what basis would you start at a specific task? What decision would have to be satisfied to do this?

Submitted by diana.bento on Thu, 05/18/2017 - 12:49

Hi, thanks for the reply.

"On what basis would you start at a specific task?"

I forsee the ocasion where the need to fix a mistake or react to an error that breaks the workflow.

"What decision would have to be satisfied to do this?"

I would limit the functionality to start at a specific task to an user that has administrator permissions.

I don't know if i'm interpreting "decision" as you are.
You mean "decision" as a decision made on the workflow?

Best regards,

1 answer

1
0
-1

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

regards
Seán

PS: As this reply offers an answer your question, and if you like it, please Mark UP and/or as Resolved.

Comments

Submitted by diana.bento on Mon, 05/22/2017 - 11:33

Hi Sean,

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?

Regards,
Diana

Notifications