[jBPM Users] - Re: What is the status of PVM in JBPM?
by dinosaurus
"kukeltje" wrote : a ui framework for? Designing processes? Then I think you are out of luck. It would be very complex to make db tables like in 3. The current (4) situation is much simpler for most cases (but yours).
|
| Yet, I'd almost like to ask the same question again.... what is it that you want to achieve? What kind of list of nodes/transitions do you want to show? While executing processes? While designing them?
kukeltje, I'm not sure if I can explain something more. Just in my case I have a framework which better works on top of database than on top of Java API. Sometimes I need to use some non-java applications for reading data and having process structure presented in DB might be helpful. So that's why I asked such a question.
Thanks for your comments, they were quite helpful for me in understanding of the main JBPM's vision.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251178#4251178
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251178
16 years, 7 months
[jBPM Users] - Re: decision node based on data not in task variables
by sravyts
Is it possible to use a spring bean as the handler in a decision node?
I can't seem to get this working (although I registered spring as a language for the expression language in jbpm.cfg.xml:
<script-manager default-expression-language="juel"
| default-script-language="juel"
| read-contexts="execution, environment, process-engine, spring"
| write-context="">
| <script-language name="juel"
| factory="org.jbpm.pvm.internal.script.JuelScriptEngineFactory" />
| </script-manager>
|
I get the following error:
| Caused by: javax.el.PropertyNotFoundException: Cannot find property decisionConditionHandler
| at de.odysseus.el.util.SimpleResolver.get(SimpleResolver.java:106)
| at de.odysseus.el.util.SimpleResolver.getValue(SimpleResolver.java:126)
| at de.odysseus.el.tree.impl.ast.AstIdentifier.eval(AstIdentifier.java:69)
| at de.odysseus.el.tree.impl.ast.AstEval.eval(AstEval.java:42)
| at de.odysseus.el.tree.impl.ast.AstNode.getValue(AstNode.java:29)
| at de.odysseus.el.TreeValueExpression.getValue(TreeValueExpression.java:120)
| at org.jbpm.pvm.internal.script.JuelScriptEngine.evalExpr(JuelScriptEngine.java:176)
this is my process :
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process name="DecisionConditions" xmlns="http://jbpm.org/4.0/jpdl">
|
| <start g="16,102,48,48">
| <transition to="evaluate document" />
| </start>
|
| <decision name="evaluate document" g="96,102,48,48">
| <handler expr="#{decisionConditionHandler}">
| <conditions>
| <condition>
| <transition>bad</transition>
| <expression>#{huur.commercieel == false}</expression>
| </condition>
| <condition>
| <transition>good</transition>
| <expression>#{huur.commercieel == true}</expression>
| </condition>
| </conditions>
| </handler>
|
|
| <transition name="good" to="submit document" g="120,60:-37,22" />
| <transition name="bad" to="try again" g=":-19,-22" />
| </decision>
|
| <state name="submit document" g="175,35,122,52"/>
| <state name="try again" g="176,100,122,52"/>
|
| </process>
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251136#4251136
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251136
16 years, 7 months
[jBPM Users] - Query on remaining task
by freak182
Hello,
I have to display the next possible task aside from the current task in the task instance.
here is the scenario:
I have a process definition compose of 5 task: A, B, C, D, E
Now, I started the process then the current task is A and it is in taskinstance table. Now when the user process task A, A now is in completed stated while task B is in on_progress state. both task A and B now in taskinstance table for specified process instance.
Now problem is how can I display the next possible not completed task. In this case B (still on on_progress state), C, D, E.
version used: jbpm 3.2.5
Thanks a lot.
Cheers.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251116#4251116
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251116
16 years, 7 months