I am a bit confused regarding the definition of a process.
Below is a small process I try to create:
I have two tasks:
a) writing a book
b) reading a book
I create one swimlane for people that can read, and one swimlane for people
that can write.
At the deployment processdefinition I do not know which users that belong to
the swimlanes,
so I want to assign the actors after I have instantiated the process
(by fetching swimlanes and do something like
swimLaneInstance.setActorId("donald");
)
However, I get errors when deploying/instantiating the process (see below), but
I cannot see that my process definition is much different than any examples I
can find.
Can you guys help me out with what is wrong?
I also noticed that the start-state is not listed as an element in the schema
(but is referred to in that document, so I assume that is just an error in the
schema? )
jbpm-starters-kit-3.0.1/jbpm/doc/schema/jpdl-3.0.html
Thankful for any help.
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition
| xmlns="http://jbpm.org/3/jpdl"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://jbpm.org/3/jpdl
http://jbpm.org/xsd/jpdl-3.0.xsd"
| name="simpleDeluxe">
|
| <swimlane name="writer"/>
|
| <swimlane name="reader"/>
|
| <start-state name="start">
| <transition name="tr1" to="first"></transition>
| </start-state>
|
| <state name="first">
| <transition name="tr1" to="writeBook"></transition>
| </state>
|
| <task-node name="writeBook">
| <task swimlane="writer">
| <controller>
| <variable name="booktitle" />
| </controller>
| </task>
| <transition name="tr1" to="BookIsWritten"></transition>
| </task-node>
|
| <state name="BookIsWritten">
| <transition name="tr1" to="readBook"></transition>
| </state>
|
| <task-node name="readBook">
| <task swimlane="reader">
| <controller>
| <variable name="review" />
| </controller>
| </task>
| <transition name="tr1" to="BookHasBeenRead"></transition>
| </task-node>
|
| <state name="BookHasBeenRead">
| <transition name="tr1" to="end"></transition>
| </state>
|
| <end-state name="end"></end-state>
|
| </process-definition>
|
errors I get when I try deploy & instantiate the process:
| 20:27:40,953 WARN ErrorCounter : *** WARNING: Keyword 'end' is being
intepreted as an identifier due to: expecting IDENT, found 'end'
| Hibernate: select taskinstan0_.ID_ as ID1_, taskinstan0_.NAME_ as
NAME2_26_, taskinstan0_.DESCRIPTION_ as DESCRIPT3_26_, taskinstan0_.ACTORID_ as
ACTORID4_26_, taskinstan0_.CREATE_ as CREATE5_26_, taskinstan0_.START_ as
START6_26_, taskinstan0_.END_ as END7_26_, taskinstan0_.DUEDATE_ as
DUEDATE8_26_, taskinstan0_.PRIORITY_ as PRIORITY9_26_,
taskinstan0_.ISCANCELLED_ as ISCANCE10_26_, taskinstan0_.ISSIGNALLING_ as
ISSIGNA11_26_, taskinstan0_.ISBLOCKING_ as ISBLOCKING12_26_, taskinstan0_.TASK_
as TASK13_26_, taskinstan0_.TOKEN_ as TOKEN14_26_,
| taskinstan0_.SWIMLANINSTANCE_ as SWIMLAN15_26_,
taskinstan0_.TASKMGMTINSTANCE_ as TASKMGM16_26_ from JBPM_TASKINSTANCE
taskinstan0_ where taskinstan0_.ACTORID_=? and (taskinstan0_.END_ is null) and
taskinstan0_.ISCANCELLED_=false
|
| 20:27:41,593 DEBUG JpdlXmlReader :
| process definition line 13: cvc-complex-type.2.4.a: Invalid content was
found starting with element 'start-state'. One of
| '{"http://jbpm.org/3/jpdl":swimlane,
| "http://jbpm.org/3/jpdl":state, "http://jbpm.org/3/jpdl":task-node,
"http://jbpm.org/3/jpdl":super-state,
| "http://jbpm.org/3/jpdl":process-state, "http://jbpm.org/3/jpdl":node,
| "http://jbpm.org/3/jpdl":fork, "http://jbpm.org/3/jpdl":join,
| "http://jbpm.org/3/jpdl":decision, "http://jbpm.org/3/jpdl":end-state,
"http://jbpm.org/3/jpdl":action,
| "http://jbpm.org/3/jpdl":script, "http://jbpm.org/3/jpdl":create-timer,
"http://jbpm.org/3/jpdl":cancel-timer,
| "http://jbpm.org/3/jpdl":task, "http://jbpm.org/3/jpdl":event,
"http://jbpm.org/3/jpdl":exception-handler}' is expected.
|
| 20:27:41,656 DEBUG JpdlXmlReader : process definition line 13:
cvc-complex-type.2.4.a: Invalid content was found starting with element
| 'start-state'. One of '{"http://jbpm.org/3/jpdl":swimlane,
| "http://jbpm.org/3/jpdl":state, "http://jbpm.org/3/jpdl":task-node,
"http://jbpm.org/3/jpdl":super-state,
| "http://jbpm.org/3/jpdl":process-state, "http://jbpm.org/3/jpdl":node,
"http://jbpm.org/3/jpdl":fork,
| "http://jbpm.org/3/jpdl":join, "http://jbpm.org/3/jpdl":decision,
"http://jbpm.org/3/jpdl":end-state, "http://jbpm.org/3/jpdl":action,
| "http://jbpm.org/3/jpdl":script, "http://jbpm.org/3/jpdl":create-timer,
"http://jbpm.org/3/jpdl":cancel-timer,
| "http://jbpm.org/3/jpdl":task, "http://jbpm.org/3/jpdl":event,
"http://jbpm.org/3/jpdl":exception-handler}' is expected.
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3934156#3934156
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3934156
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user