Hi Surej,
if I've seen correctly, you did not get an answer to your mail yet.
Sorry, I wasn't able to read my mailbox continuesly the last week...
> *1,* In sub work flow I have a condition. If the user input is true
> the control should go to the parent work flow. For that should I end
> the node there? Or leave it as out node. ( ref:: node 5)
>
> Eg.
> <node id="3" type="ExclusiveChoice">
> <condition type="Variable" name="SubTeamLeaderApprove">
> <condition type="IsFalse"/>
> <outNode id="4"/>
> </condition>
> <condition type="Variable" name="SubTeamLeaderApprove">
> <condition type="IsTrue"/>
> <outNode id="5"/>
> </condition>
> </node>
> <node id="4" type="End"/>
> </workflow>
If I remember correctly, you just need to end the sub-workflow. It would
not make any sense to reference to a node of the parent workflow as the
sub-workflow should not know anything about the parent workflow(s)
callling it. Think about functions in a programming language: they do
not know anything about the calling context.
> *2 ,* If we are manipulating workflow using db .will the control go
> back to the parent workflow automatically, or Do we have to redirect
> to parent work flow using any functions.
You do not need to care about it. Everythings done automatically.
> *3,* My logic of workflow . I am checking whether the team leader is
> present for the day .If the condition is true the work flow is going
> nicely to for the project manager
>
> But if he is not available it is going subwork flow when sub leader
> is approves it goes to the parent work flow .
I'm not sure if you need a sub-workflow here. I guess, this is very
specific and probably not that complex. So: do not introduce to much
complexity...
> Till now the work flow
> is perfectly working . When subworkflow resumes I get an error
> message like this
>
> Fatal error: Uncaught exception 'ezcWorkflowExecutionException' with
> message 'Node activates less conditional outgoing nodes than
> required.' in
> D:\xampp\htdocs\ezc\Workflow\src\interfaces\node_conditional_branch.p
>hp:145 Stack trace: #0
> D:\xampp\htdocs\ezc\Workflow\src\interfaces\execution.php(446):
> ezcWorkflowNodeConditionalBranch->execute(Object(ezcWorkflowDatabaseE
>xecution)) #1
> D:\xampp\htdocs\ezc\Workflow\src\interfaces\execution.php(360):
> ezcWorkflowExecution->execute() #2
> D:\xampp\htdocs\ezc\Workflow\docs\tlApprove.php(50):
> ezcWorkflowExecution->resume(Array) #3 {main} thrown in
> D:\xampp\htdocs\ezc\Workflow\src\interfaces\node_conditional_branch.p
>hp on line 145
Just a guess: Check your condition in the conditional branch. For me it
looks as if none of your conditions matches. (There might be other
reasons as well.) But it's hard to say anything about it without any
knowledge about the workflow definition and the input data.
If nothing helps: go to the point where the exception is thrown and
print_r (var_dump if type information is needed) some information, e.g.
the execution variables or (if not sure where you are) about the node
configuration. This could help here as well.
> Also it is not going back to the parent work flow
Of course: you got an exception... :-)
Hope that helps a little bit
Thomas
--
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components