I created a simple process definition and I'm trying to deploy it using RUNAWFE after loggin in as Administrator. I'm getting Process definition parsing error.
The xml file is as follows: <?xml version="1.0" encoding="UTF-8"?>
<process-definition name="atmWorkflow"> <start-state name="start"> <transition name="to_request_cash" to="request_cash"></transition> </start-state> <state name="request_cash"> <transition name="to_approve_request" to="approve_request"></transition> </state> <task-node name="approve_request"> <transition name="to_end" to="end"></transition> </task-node> <end-state name="end"></end-state> </process-definition>
Can someone tell me what's wrong with the above definition? Thank you.
> what's wrong with the above definition?
1. No <!DOCTYPE ... tag 2. no swimlanes declaration 3. task-node is not supported in jbpm 2.0
The correct xml file is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE process-definition PUBLIC "-//jBpm/jBpm Mapping DTD 2.0//EN" "http://jbpm.org/dtd/processdefinition-2.0.dtd">
<process-definition name="atmWorkflow">
<swimlane name="requester" />
<start-state name="start" swimlane="requester"> <transition name="to_request_cash" to="request_cash"></transition> </start-state>
<state name="request_cash"> <assignment swimlane="requester" assignment="required" /> <transition name="to_approve_request" to="approve_request"></transition> </state>
<state name="approve_request"> <assignment swimlane="requester" assignment="required" /> <transition name="to_end" to="end"></transition> </state>
<end-state name="end"></end-state> </process-definition>
best regards, Andrei
Log in to post a comment.
I created a simple process definition and I'm trying to deploy it using RUNAWFE after loggin in as Administrator.
I'm getting Process definition parsing error.
The xml file is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<process-definition name="atmWorkflow">
<start-state name="start">
<transition name="to_request_cash" to="request_cash"></transition>
</start-state>
<state name="request_cash">
<transition name="to_approve_request" to="approve_request"></transition>
</state>
<task-node name="approve_request">
<transition name="to_end" to="end"></transition>
</task-node>
<end-state name="end"></end-state>
</process-definition>
Can someone tell me what's wrong with the above definition? Thank you.
> what's wrong with the above definition?
1. No <!DOCTYPE ... tag
2. no swimlanes declaration
3. task-node is not supported in jbpm 2.0
The correct xml file is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE process-definition PUBLIC
"-//jBpm/jBpm Mapping DTD 2.0//EN"
"http://jbpm.org/dtd/processdefinition-2.0.dtd">
<process-definition name="atmWorkflow">
<swimlane name="requester" />
<start-state name="start" swimlane="requester">
<transition name="to_request_cash" to="request_cash"></transition>
</start-state>
<state name="request_cash">
<assignment swimlane="requester" assignment="required" />
<transition name="to_approve_request" to="approve_request"></transition>
</state>
<state name="approve_request">
<assignment swimlane="requester" assignment="required" />
<transition name="to_end" to="end"></transition>
</state>
<end-state name="end"></end-state>
</process-definition>
best regards,
Andrei