[JBoss jBPM] - WARN [ProxyWarnLog] Narrowing proxy to class org.jbpm.graph
by vnm
Hi,
I am using jbpm-jpdl-suite-3.2.3 and below is my processdefinition in which I have configured super state
<?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="SuperStateSample">
|
|
| <start-state name="start-state1">
| <transition to="node1"></transition>
| </start-state>
|
|
| <node name="node1">
| <event type="node-enter">
| <action name="action1" class="testFolder.ActionHandler1"></action>
| </event>
| <transition to="node2"></transition>
| </node>
|
| <node name="node2">
| <event type="node-enter">
| <action name="action2" class="testFolder.ActionHandler2"></action>
| </event>
| <transition to="super-state1"></transition>
| </node>
|
| <super-state name="super-state1">
| <node name="node3">
| <event type="node-enter">
| <action name="action3" class="testFolder.ActionHandler3"></action>
| </event>
| <transition to="join1"></transition>
| </node>
| <node name="node4">
| <event type="node-enter">
| <action name="action4" class="testFolder.ActionHandler4"></action>
| </event>
| <transition to="join1"></transition>
| </node>
| <decision name="decision1">
| <handler class="testFolder.DecisionHandler1"></handler>
| <transition to="node3"></transition>
| <transition to="join1" name="to join1"></transition>
| </decision>
| <decision name="decision2">
| <handler class="testFolder.DecisionHandler2"></handler>
| <transition to="node4"></transition>
| <transition to="join1" name="to join1"></transition>
| </decision>
| <fork name="fork1">
| <transition to="decision1"></transition>
| <transition to="decision2" name="to decision2"></transition>
| </fork>
| <join name="join1"></join>
| <transition to="node5"></transition>
| </super-state>
|
| <node name="node5">
| <event type="node-enter">
| <action name="action5" class="testFolder.ActionHandler5"></action>
| </event>
| <transition to="end-state1"></transition>
| </node>
|
|
| <end-state name="end-state1"></end-state>
|
|
| </process-definition>
but on singnaling processinstance of this processdefition I am getting follwing warning which is because of using superstate in my processdefintion...
| WARN [ProxyWarnLog] Narrowing proxy to class org.jbpm.graph.def.SuperState - this operation breaks ==
And because of this problem nodes which are part of superstate are not called on execution of processinstance....
Thanks in advance for help
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239762#4239762
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239762
16 years, 10 months
[JBoss jBPM] - Re: Custom IdentitySession configuration
by shekharv
Just use something on the lines of what is specified below: Of course you WILL have to tweak it to suite all your needs,
| <?xml version="1.0" encoding="UTF-8"?>
|
| <jbpm-configuration>
|
| <import resource="jbpm.jpdl.cfg.xml"/>
| <process-engine-context>
| <repository-service/>
| <repository-cache/>
| <execution-service/>
| <history-service/>
| <management-service/>
| <identity-service/>
| <task-service/>
|
| <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>
|
| <authentication/>
| <id-generator/>
| <types resource="jbpm.variable.types.xml"/>
|
| <address-resolver/>
|
| <business-calendar>
| <monday hours="9:00-12:00 and 12:30-17:00"/>
| <tuesday hours="9:00-12:00 and 12:30-17:00"/>
| <wednesday hours="9:00-12:00 and 12:30-17:00"/>
| <thursday hours="9:00-12:00 and 12:30-17:00"/>
| <friday hours="9:00-12:00 and 12:30-17:00"/>
| <holiday period="01/07/2008 - 31/08/2008"/>
| </business-calendar>
|
| <command-service>
| <retry-interceptor/>
| <environment-interceptor/>
| <spring-transaction-interceptor current="true"/>
| </command-service>
| </process-engine-context>
|
| <transaction-context>
| <repository-session/>
| <db-session/>
| <message-session/>
| <timer-session/>
| <history-session/>
| <hibernate-session current="true"/>
|
| <!-- Custom Identity implementation-->
| <object class="com.urcompany.IdentitySessionImpl"/>
| </transaction-context>
| </jbpm-configuration>
|
If you note the config above, the transaction-context is not inside the process-context. It is a node by itself.
So either use the config from above or change yours to something more like:
| <process-engine-context>
| <identity-service/>
| </process-engine-context>
| <transaction-context>
| <object class="be.mypackage.MyIdentitySession" />
| </transaction-context>
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239601#4239601
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239601
16 years, 10 months