[JBoss jBPM] - Re: StackOverflowError
by insanely.freak
I have also tried with two Task nodes but still i get same result following is the processdefinition.xml file for aboce case:
| <process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="process_name">
|
| <start-state name="start">
| <transition to="decision" ></transition>
| </start-state>
|
| <task-node name="decision" create-tasks="true">
| <task name="decision_task" description="decision">
| </task>
| <transition to="to_end" name="to_end"/>
| <transition to="taskNode" name="taskNode"/>
| </task-node>
|
| <task-node name="taskNode" create-tasks="true">
| <task name="approve_task" description="hula">
| <assignment class="com.workflow.CostCenterAssignmentHandler">
| </assignment>
| </task>
| <transition to="decision" name="decision"/>
| </task-node>
|
| <end-state name="to_end"></end-state>
| </process-definition>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201026#4201026
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201026
17 years, 2 months
[JBoss jBPM] - TaskNode override
by Kooper
Hi,
I need to override TaskNode with my custome Node to add type attribute to it.
I read on the forum that for this I need update jbpm.cfg.xml with
| <string name="resource.node.types" value="com/jbpm/node/node.types.xml" />
|
I've moved node.types.xml to the location above and updated task node value
| <node-type element="task-node" class="com.jbpm.node.MyNode" />
|
I've created MyNode.java and override execute() method, created MyNode.hbm.xml
| <?xml version="1.0" encoding="UTF-8"?>
|
| <!DOCTYPE hibernate-mapping PUBLIC
| "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
| "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
|
| <hibernate-mapping default-access="field">
| <subclass name="com.jbpm.node.MyNode"
| discriminator-value="M" extends="org.jbpm.graph.node.TaskNode">
| <property name="type" column="TYPE_" />
| </subclass>
| </hibernate-mapping>
and updated hibernate.cfg.xml with MyNode.hbm.xml
Adn deployed the application. But when running I'm still having TaskNode returned to me and not MyNode.
Will the described above solution work or I need to change jbpm source to add type attribute?
Thank you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201025#4201025
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201025
17 years, 2 months
[JBoss jBPM] - Re: workaround for StackOverflow exception
by insanely.freak
>From one of the post in forum I got to know that there should be a wait state when we try to implement such loop cases, which in my case is there.
I have also tried with two Task nodes but still i get same result following is the processdefinition.xml file for aboce case:
| <process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="process_name">
|
| <start-state name="start">
| <transition to="decision" ></transition>
| </start-state>
|
| <task-node name="decision" create-tasks="true">
| <task name="decision_task" description="decision">
| </task>
| <transition to="to_end" name="to_end"/>
| <transition to="taskNode" name="taskNode"/>
| </task-node>
|
| <task-node name="taskNode" create-tasks="true">
| <task name="approve_task" description="hula">
| <assignment class="com.workflow.CostCenterAssignmentHandler">
| </assignment>
| </task>
| <transition to="decision" name="decision"/>
| </task-node>
|
| <end-state name="to_end"></end-state>
| </process-definition>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201020#4201020
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201020
17 years, 2 months