Hi, I have a perl script for my cgi task.Is their any way to end the current task using this script.In WF developers guide I didn't find any method to end a task.
Do you want to end the workflow or current executing task ?To end the current task and jump to next task you can use,task->callback(0,"End the task"); in the perl script This will close the current task and jump to the next task.What you are using WFM or WFT? Also,state TS and OS version ?
Thanks,its got workingIs their any way to check this callback's second argument is next task.Means if Iam giving liketask->callback(0,"Success");ortask->callback(0,"Fail"); from my cgi task(based on some conditions).Next task in my workflow is a submit task,their I want check whether the CGITask was success.That is if the callback is "success" then I want to invoke submit task otherwise again it go back to cgi task.Is their any method to achive this
Thanks,its got workingIs their any way to check this callback's second argument is next task.Means if Iam giving liketask->callback(0,"Success");ortask->callback(0,"Fail"); from my cgi task(based on some conditions).Next task in my workflow is a submit task,their I want check whether the CGITask was success.That is if the callback is "success" then I want to invoke submit task otherwise again it go back to cgi task.Is their any way to achive this?
It is based on the first argument not on the second argument. Second argument is comment for transition.0- means Success and make transition to next task ---give transition name "Success".1- means Failure and make transition to Failire task ---give transition name as "Failure".For your problem, from CGI task give two transition i.e. first "Success" which points to the "Submit task", other is Failure which make transition to some dummy task and this dummy task again make transition to CGITask.So in CGITask, make callback(0) only when your work is done and it will consider Success and automatically jump to next task i.e. Submit task with Success transition.If your work is not done in the CGITask then make callback(1), so it will goto dummy task and then again will come to CGItask for completing it.
ThanksI Understood what you said,.Iam very in workflow.My workflow is likeUsertask1-->CGITask-->UserTask2here if CGITask is success I want to transfer control to UserTask2 if it is fail I need to transfer control to UserTask1.Where I need to put dummy task.Iam very in workflow,So please find a solution for me.
When fails, instead of transfering control to the Usertask1, create dummy task, tranfer to dummy task, and again back to CGITask.Dummy task dont do anything, just spacer for transfering to itself(CGITask). U1 | \/CGITask ------>U2 | ^ | | \/ |DummyTaskThis I said in case of WFM, I have not frequently used WFT, but it might be same for WFT also.
This makes no sense to me at all. How does this do what he said he wanted to do? What is the point of the dummytask? If the CGITask fails, simply transition to UserTask1. What do you need a dummytask for?
Ohhh...Soory...I thought, he does not want to do any activity from the user. Soory, It's my mistake in not properly reading the thread....Kannan1 ....u can just make transition simply back to Usertask1 from CGITask.You don't need the Dummy task.....