what do you mean by 'wrongly represented'?
- where is the query send?
- where and how do you enter 'attente_accord_tacite'
By wrongly represented, I mean that I must be at one time in two nodes :
- the one which waits until X days
- the one which waits the manual validation
So I guess I must have something like a fork in my workflow, so that it is possible for me to be in two nodes at the same time.
But if I add the fork, I have to wait until both tasks are completed, and I don't want that.
I don't know if I'm clear enough.
And to answer to your questions :
- The query is sent at the start state
- I enter the node 'attente_accord_tacite' when the time declared in the query is reached
You could probably accomplish this with a timer on the task creation event.
Put an action in the timer, and basically set it to however long until it expires.
Then, have the action in the timer be responsible for closing the task and pushing the workflow.
So when someone manually validates the query I'll have to stop the timer and push the token ?
Is it the right way ?
the timer will automatically be cancelled when you end that task. You should not have to manipulate the token yourself
you mean that I should not use the signal() method ? That is what I meant by "push the token"
with tasks? No, normally you 'end' the task. On non-task nodes it can be needed
Strange, all I see in the examples is a signal() call
it is not that it is forbidden to signal a token in a tasknode, but if you look at what you want to achieve (end the task) it is more loggically then to pass the token on (unless it is the 4x100 or 4x400 relay at the olympics :-)