Hi Huisheng,
When the control comes in the task node "analyse" from "create form" how come the business logic(eg.: Analyser.java) get executed?
For example:
<task g='93,93,90,50' name='create form' assignee="publisher">
<transition to='analyse'/>
</task>
<task g='213,93,90,50' name='analyse' assignee="analyzer">
<transition name='review' g='-21,-22' to='review'/>
<transition name='reject' g='258,42:56,-2' to='end 2'/>
</task>
when the control flow comes in the analyse task we need execute some business logic (eg.: Analyser.java)to analyse the form.
How can I do that. Which will call Analyser.java class? Once the execution of that class gets over how the transition occurs to the next task?
Analyser.java
public class Analyser{
public String analyse()
{
String country = form.getCountry();
if(null!=country||""!=country)
{
return "review"
}
else
{
return "reject"
}
}
Can you please give a reply an answer to the same as soon as possible? Please..
Thank You very much,
With Regards,
Felix K Jose