[jBPM] New message: "Re: How to create a graphical collection of already defined tasks?"
by Falko Menge
User development,
A new message was posted in the thread "How to create a graphical collection of already defined tasks?":
http://community.jboss.org/message/529439#529439
Author : Falko Menge
Profile : http://community.jboss.org/people/falko.menge
Message:
--------------------------------------------------------------
Hi Rob,
I forgot to mention, that if your set of set of custom stencils is rather static, you may also skip the all dynamic generation I talked about and just create a stencilset extension manually (or even modify the jBPM stencilset).
Maybe have a look at the existing http://code.google.com/p/oryx-editor/source/browse/trunk#trunk/editor/dat... and http://code.google.com/p/oryx-editor/source/browse/trunk#trunk/editor/dat..., which are defined through simple JSON files in combination with SVG and PNG files for the graphical representation. In fact, the http://code.google.com/p/oryx-editor/source/browse/trunk/editor/data/sten... is also just an extension to the http://code.google.com/p/oryx-editor/source/browse/trunk/editor/data/sten... of Oryx.
The key idea, which will make the jPDL export work for your custom stencils, is to set their 'superId' property to one of the existing elements in the jBPM stencilset, e.g., 'java' for the Java activity.
The following pages of the Oryx wiki may also be of help for understanding the concepts:http://code.google.com/p/oryx-editor/wiki/HowToCreateStencilSet
http://code.google.com/p/oryx-editor/wiki/StencilSetPerspectives
http://code.google.com/p/oryx-editor/wiki/StencilSetExtension
Greetings from Berlin,
Falko
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529439#529439
16 years, 1 month
[jBPM] New message: "Converting a variable back"
by Jochen Mader
User development,
A new message was posted in the thread "Converting a variable back":
http://community.jboss.org/message/529431#529431
Author : Jochen Mader
Profile : http://community.jboss.org/people/jochen_mader
Message:
--------------------------------------------------------------
I am working on jBPM 4.3.
I wrote a converter to convert one of my classes into a Long (it's coming from JPA with the Long being its key).
I added it to jbpm.variables.types.xml and using the following code I add the variable to my instance.
Map<String, Object> variables = new HashMap<String, Object>();
variables.put("dataEntity", dataEntity);
ProcessInstance instance = processEngine.getExecutionService()
.startProcessInstanceByKey("dataEntityProcess", variables);
The converter gets triggered and the variable is converted to a Long.
In my process I have a java task:
<java name="activateAccount" expr="#{dataEntityProcessDAO}" method="activate">
<arg>
<object expr="#{dataEntity}" />
</arg>
<transition to="end" />
</java>
As soon as my process reaches the task I get
org.jbpm.pvm.internal.wire.WireException: method activate(java.lang.Long) is not available on object com.hre.portaldb.crosscommon.base.processes.DataEntityProcessDAOImpl@40b11a9f (com.hre.portaldb.crosscommon.base.processes.DataEntityProcessDAOImpl)
at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.invokeMethod(ObjectDescriptor.java:206)
at org.jbpm.jpdl.internal.activity.JavaActivity.perform(JavaActivity.java:76)
The revert method of my converter is never called and it tries to use the Long on the method that takes DataEntity as input.
What am I doing wrong?
Thx
Jochen
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529431#529431
16 years, 1 month
[jBPM] New message: "Re: How to create a graphical collection of already defined tasks?"
by Peter Meggitt
User development,
A new message was posted in the thread "How to create a graphical collection of already defined tasks?":
http://community.jboss.org/message/529420#529420
Author : Peter Meggitt
Profile : http://community.jboss.org/people/jbossphan
Message:
--------------------------------------------------------------
While not ideal, another option would be to limit the information required when defining the workflows and then run them through a stylesheet to fill in the details. The assumption here is that the activities don't require much modification once selected by the designer. So if you have 12 defined activities that are available to your designers, they would maybe use the "java" activity and fill in the class with a logical activity name. When importing the workflows into the repository you would use a stylesheet to convert this as appropriate. I'm looking at introducing a separate validation stage using schematron but that's the subject of another post.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529420#529420
16 years, 1 month