ok, part of it. The swimlane definition is more important. Can you post that to?
<?xml version="1.0" encoding="UTF-8"?> <process-definition xmlns="" name="resignation"> <swimlane name="Employee"></swimlane> <swimlane name="Manager"> <assignment expression="previous --> group(hierarchy) --> member(boss)"></assignment> </swimlane> <swimlane name="SBU Admin"> <assignment expression="user(sbuadmin)"></assignment> </swimlane> <swimlane name="Librarian"> <assignment expression="user(librarian)"></assignment> </swimlane> <swimlane name="Accountant"> <assignment expression="user(accountant)"></assignment> </swimlane> <swimlane name="admin"> <assignment expression="user(admin)"></assignment> </swimlane> <swimlane name="hr"> <assignment expression="user(hr)"></assignment> </swimlane> <start-state name="Create new resignation application"> <task name="Create new resignation application" swimlane="Employee"> <controller> <variable name="Name" access="read,write,required"></variable> <variable name="PSNo" access="read,write,required"></variable> <variable name="Department"></variable> <variable name="Reason" access="read,write,required"></variable> <variable name="Superiorid"></variable> </controller> </task> <transition name="" to="Send Mail to sbu head and manager"></transition> </start-state>
whats now with the problem?
is there already a workaround or still not fuctioning
there is no problem here; as Ronald says, jBPM only checks required variables when you end() the task instance.
The end() call needs not be explicit. You can have jBPM end all tasks that are still open when the token leaves the task node by setting the end-tasks attribute to yes.