-
1. Re: Question in JBPM <Controller>
walterim Jun 12, 2006 9:05 AM (in response to fairy)You have to create/edit the .xhtml files according your needs.
-
2. Re: Question in JBPM <Controller>
fairy Jun 12, 2006 9:09 AM (in response to fairy)Thanks for the reply. But I hope you are meaning the processdefinition.xml files.
Can you explain me in detail.
Thanks -
3. Re: Question in JBPM <Controller>
walterim Jun 12, 2006 9:17 AM (in response to fairy)I suggest you take a closer look at the examples, mainly in the websale example (in cvs).
-
4. Re: Question in JBPM <Controller>
fairy Jun 12, 2006 9:24 AM (in response to fairy)Hi,
This is the websale exapmle available in CVS
<?xml version="1.0"?>
<process-definition name="websale"
xmlns="urn:jbpm.org:jpdl-3.1">
<!-- SWIMLANES (= process roles) -->
<!-- NODES -->
<start-state name="create new web sale order">
</start-state>
<task-node name="evaluate web order">
salesman
</task-node>
<task-node name="fix web order data">
</task-node>
<task-node name="wait for money">
</task-node>
accountancy application is now informed of the payment
shipper
${shipper} now ships ${item} to ${address}
<end-state name="end" />
</process-definition>
I could find only text boxes in the user interface when I deploy and run it.. -
5. Re: Question in JBPM <Controller>
fairy Jun 12, 2006 9:26 AM (in response to fairy)<?xml version="1.0"?> <process-definition name="websale" xmlns="urn:jbpm.org:jpdl-3.1"> <!-- SWIMLANES (= process roles) --> <swimlane name="buyer" /> <swimlane name="salesman"> <assignment expression="user(ernie)" /> </swimlane> <swimlane name="accountant"> <assignment expression="user(bert)" /> </swimlane> <swimlane name="shipper"> <assignment expression="user(grover)" /> </swimlane> <!-- NODES --> <start-state name="create new web sale order"> <task swimlane="buyer"> <controller> <variable name="item"/> <variable name="quantity"/> <variable name="address"/> </controller> </task> <transition to="evaluate web order" /> </start-state> <task-node name="evaluate web order"> <task swimlane="salesman"> <timer duedate="20 seconds" repeat="10 seconds"> <action class="org.jbpm.websale.RemindActor"> <swimlaneName>salesman</swimlaneName> </action> </timer> <controller> <variable name="item" access="read"/> <variable name="quantity" access="read"/> <variable name="address" access="read"/> <variable name="comment"/> </controller> </task> <transition name="ok" to="salefork" /> <transition name="more info needed" to="fix web order data" /> </task-node> <task-node name="fix web order data"> <task swimlane="buyer"> <controller> <variable name="comment" access="read"/> <variable name="item" /> <variable name="quantity" /> <variable name="address" /> </controller> </task> <transition to="evaluate web order" /> </task-node> <fork name="salefork"> <transition name="payment" to="wait for money" /> <transition name="shipping" to="ship item" /> </fork> <task-node name="wait for money"> <task swimlane="accountant"> <controller> <variable name="item" access="read" /> <variable name="quantity" access="read" /> <variable name="address" access="read" /> <variable name="money received" /> </controller> </task> <transition to="update books" /> </task-node> <node name="update books"> <action class="org.jbpm.websale.UpdateBooks"> <msg>accountancy application is now informed of the payment</msg> </action> <transition to="salejoin" /> </node> <node name="ship item"> <action class="org.jbpm.websale.ShipItem"> <swimlaneName>shipper</swimlaneName> <msg>${shipper} now ships ${item} to ${address}</msg> </action> <transition to="salejoin" /> </node> <join name="salejoin"> <transition to="end" /> </join> <end-state name="end" /> </process-definition>
I could find only text boxes in the user interface while i am deploying and running.. -
6. Re: Question in JBPM <Controller>
walterim Jun 12, 2006 9:35 AM (in response to fairy)Yes, there are only text boxes, you have to change the JSF widgets according your needs in the .xhtml files.
-
7. Re: Question in JBPM <Controller>
fairy Jun 12, 2006 10:13 AM (in response to fairy)Hi,
Where are the .xhtml files?... I am using the recent version of JBPM 3.1.1.. There are no .xhtml files in it. I want to where exactly to edit.
If you could help me with an example...
Thanks.. -
8. Re: Question in JBPM <Controller>
kukeltje Jun 12, 2006 10:32 AM (in response to fairy)USE CVS (as was mentioned above) there is the 3.2 alpha which has support for this. This is btw mentioned several times before in the forum. Use the search functionality