[jBPM] - process dependency
by S Root
S Root [http://community.jboss.org/people/sroot] created the discussion
"process dependency"
To view the discussion, visit: http://community.jboss.org/message/623006#623006
--------------------------------------------------------------
Hi all,
I have a requirement to have one process start upon sucessful completion of another (a chain of dependencies actually). I was reading the 5.1 user guide and the event sample at paragraph 5.8.4 looks like exactly what I want to do. The process can be started directly but it could also be triggered by a message start event. The last statement in that paragraph even states exactly what I want to have happen.
For instance: P1 does its processing, upon successful completion a signalEvent is fired and P2 starts.
P1 has no knowledge of P2 and vice versa, other than possibly passing a parameter or two.
For the life of me I cannot figure out how to have the dependent process start after the first process completes. I've tried a couple of things that seem to provide that affect but am pretty certain they are not what was intended.
One thing I did was define P2 to have a start node and the next node be a message event node. Just before I start P1, I start P2, which hits the event node and pauses, waiting for the expeceted event. This works when P1 calls signalEvent with the type expected, but this is not what is needed as P2 also needs to be able to be started on an adhoc basis.
I'd like to be able to do this with events so other processes could be added with, I hope, no changes to the processes which they are dependant on.
Any suggestions?
I've browsed the docs and the examples and have not been able to find anything to assist.
-S
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/623006#623006]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
[jBPM] - Human Task Forms (on the fly)
by Tobias Wittur
Tobias Wittur [http://community.jboss.org/people/tob1as] created the discussion
"Human Task Forms (on the fly)"
To view the discussion, visit: http://community.jboss.org/message/617281#617281
--------------------------------------------------------------
Hi,
I had a look at the humantask example in the jbpm-5.1.0.Final-examples.zip and was able to create a simple workflow with ftl files. However, I would prefer the engine to create the forms on the fly, since a business user would not want to write html by hand.
I had a look at this video:
"Develop complex jBPM processes all in Guvnor? Yes, you can!" : http://vimeo.com/26126678 http://vimeo.com/26126678
and realized, there should be a button that creates the forms:
http://community.jboss.org/servlet/JiveServlet/showImage/2-617281-16786/g... http://community.jboss.org/servlet/JiveServlet/downloadImage/2-617281-167...
The video was submitted 09.07.2011, 2 days after the new designer was released:
I checked the latest version of the designer, which is
| designer-1.0.0.053 | 2011-07-07 |
I downloaded the war file and replaced
C:\jbpm\jboss-5.1.0.GA\server\default\deploy\designer.war with the latest version.
However, I still do not get this buttion. Do I have to do anything else in order to get the new designer running?
I downloaded the latest jbpm-full-install.zip, and this is still installing the 1.0.0.052 version of the designer.
I also had a look at the evaluation example under
C:\jbpm\sample\evaluation.
I realized that if I add the evaluation.bpmn from eclipse to guvnor, that there are no ftl files ?!
Also if I check "Other assets, documentation" in guvnor, I can not see any ftl files. So how exactly can the evaluation process work without templates?
When I try to recreate the evaluation process without template files, I always get an error:
org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Failed to process form template
java.lang.RuntimeException: Failed to process form template
...
freemarker.core.InvalidReferenceException: employee is undefined.
...
Best regards and thanks for your help,
Tobias
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/617281#617281]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
[jBPM] - Re: Issues oryx to jbpm
by Tihomir Surdilovic
Tihomir Surdilovic [http://community.jboss.org/people/tsurdilovic] created the discussion
"Re: Issues oryx to jbpm"
To view the discussion, visit: http://community.jboss.org/message/623029#623029
--------------------------------------------------------------
Hi Tobias, wow presenting your errors via videos is really cool! Thank you very much.
Issue #1: This issue goes back to the eclipse.bpmn2 ecore model which does not make sure the id property of the definitions node is of type xsd:NCName. I am working on fixing this in their ecore model and should have done soon.
Issue #2: Yes this is also a known Issue which I'm working on in Guvnor. When saving the process Guvnor gets the process JSON from the canvas (via JavaScript) and sends it over to Designer to convert it to BPMN2 format. If Designer is not able to to parse the JSON (because of simple issues or larger) it sends back a blank string to Guvnor, thus your process BPMN2 is gone. Best thing I can advise you until this is fixed to make sure you view the source becore saving your process changes. View source actually does the same steps (except saving bpmn2 in Guvnor) so you will see any possible errors without loosing them in Guvnor.
We will also add a validation button to the toolbar which will allow you to view any errors/warnings before saving your process. Should have that done in about 3-5 weeks.
Issue #3: Again this goes to the eclipse.bpmn2 ecore model. If you look at Semantic.xsd it defines a sequence for the process element:
<xsd:element name="process" type="tProcess" substitutionGroup="rootElement"/>
<xsd:complexType name="tProcess">
<xsd:complexContent>
<xsd:extension base="tCallableElement">
<xsd:sequence>
<xsd:element ref="auditing" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="monitoring" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="property" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="laneSet" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="flowElement" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="artifact" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="supports" type="xsd:QName" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="processType" type="tProcessType" default="none"/>
<xsd:attribute name="isClosed" type="xsd:boolean" default="false"/>
<xsd:attribute name="definitionalCollaborationRef" type="xsd:QName" use="optional"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
however when generating bpmn2 eclipse.bpmn2 does not seem to follow this sequence correctly. I'll look into this and will provide more info soon.
Issue #4: What Designer version are you testing with? Please show the bpmn2 shown in the xml editor of your video.
Thanks again for reporting all this :)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/623029#623029]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month