[jBPM] - Boundary event jbpm5.0 problem
by devora Mar....
devora Mar.... [http://community.jboss.org/people/devora] created the discussion
"Boundary event jbpm5.0 problem"
To view the discussion, visit: http://community.jboss.org/message/615176#615176
--------------------------------------------------------------
Hi!
I followed TimerBoundaryEvent example and wrote the following code:
<process processType="Private" isExecutable="true" id="test" name="test.b" >
<!-- nodes -->
<boundaryEvent id="_5" name="TimerEvent" attachedToRef="_8" >
<timerEventDefinition>
<timeCycle xs:type="tFormalExpression">10ms</timeCycle>
</timerEventDefinition>
</boundaryEvent>
<scriptTask id="_6" name="Script" scriptFormat="http://www.java.com/java" >
<script>System.out.println("Timer");</script>
</scriptTask>
<endEvent id="_7" name="End2" />
<subProcess id="_8" name="Sub-Process" >
<!-- nodes -->
<startEvent id="_8-1" name="Start" />
<scriptTask id="_8-2" name="Script" scriptFormat="http://www.java.com/java" >
<script>System.out.println("sleep");
java.lang.Thread.sleep(15000);
</script>
</scriptTask>
<scriptTask id="_8-3" name="Script" scriptFormat="http://www.java.com/java" >
<script>System.out.println("UP");</script>
</scriptTask>
<endEvent id="_8-4" name="EscalationEvent" />
<!-- connections -->
<sequenceFlow id="_8-1-_8-2" sourceRef="_8-1" targetRef="_8-2" />
<sequenceFlow id="_8-2-_8-3" sourceRef="_8-2" targetRef="_8-3" />
<sequenceFlow id="_8-3-_8-4" sourceRef="_8-3" targetRef="_8-4" />
</subProcess>
<startEvent id="_9" name="Start" />
<endEvent id="_10" name="End" >
<terminateEventDefinition/>
</endEvent>
<!-- connections -->
<sequenceFlow id="_5-_6" sourceRef="_5" targetRef="_6" />
<sequenceFlow id="_6-_7" sourceRef="_6" targetRef="_7" />
<sequenceFlow id="_9-_8" sourceRef="_9" targetRef="_8" />
<sequenceFlow id="_8-_10" sourceRef="_8" targetRef="_10" />
</process>
See the attached picture as well.
However, the timer event is not being executed!
I see that only the system.out of System.out.println("UP"); is being invoked - which has before thread sleep of 15 ms, and the timer which has 10ms is not being invoked as all!
What's wrong?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/615176#615176]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months
[jBPM] - Guidance on approach to restarting Process
by olddave
olddave [http://community.jboss.org/people/olddave] created the discussion
"Guidance on approach to restarting Process"
To view the discussion, visit: http://community.jboss.org/message/615158#615158
--------------------------------------------------------------
Hi,
Just transitioned from Drools Flow 5.1.1 and am adding my own Process monitoring in an existing webapp. We will use gwt-console-server RESTful services to do this.
Our typical process has 3 main sections, 1. get a bunch of files from somewhere, 2. process them into a database, 3. extract and transform from that staging db into a central database. Typically we would run once a day on a Timer or maybe 10, noon, 2 and 4 PM, CRON like.
We might fail at a Node inside section 2 above, fix this manually and want to restart at the first Node in secrion 3. So our current thinking is that we add a 'special' Diverging Gateways XOR (pointer an example of how to do this welcome). This would have a custom dialog that allows the user to select Node names from that Process and match them to branches, then underlying generate the if, else if, else mvel code. On entry to the Process it would direct to the correct branch and lead to the Node part way through our Process, the default Node would be the Timer.
This way our console can have a store of the valid restart Nodes names (internally matched to the ProcessInstanceId) and allow them to select it for a stalled process. This would then stop that Process and restart it passing in the arg that has the Node name which is used by our special Converging Gateway. When it finishes we restart without the arg and it selects the normal Timer. This way we can skip unnessary Nodes after a stalled Node.
Is this a reasonable approach?
Thanks,
Ed
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/615158#615158]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months
[Beginner's Corner] - Re: Integrate JBoss 6 to AD - map groups to roles?
by Stian Lund
Stian Lund [http://community.jboss.org/people/pathduck] created the discussion
"Re: Integrate JBoss 6 to AD - map groups to roles?"
To view the discussion, visit: http://community.jboss.org/message/615127#615127
--------------------------------------------------------------
Hello Ashutosh and thanks for the replies.
After a lot of trial and error I have made it work with the following application policy.
<!-- Application policy for ActiveDirectory -->
<application-policy name="ActiveDirectory">
<authentication>
<login-module
code="org.jboss.security.auth.spi.LdapExtLoginModule" flag="required" >
<module-option
name="java.naming.provider.url">ldap://ldaphost:389/</module-option>
<module-option
name="bindDN">CN=xxx,OU=xxx,DC=xxx,DC=xxx</module-option>
<module-option
name="bindCredential">xxx</module-option>
<module-option
name="baseCtxDN">OU=Users,OU=xxx,OU=xxx,DC=xxx,DC=xxx</module-option>
<module-option
name="baseFilter">(sAMAccountName={0})</module-option>
<module-option
name="rolesCtxDN">OU=Groups,OU=xxx,OU=xxx,DC=xxx,DC=xxx</module-option>
<module-option
name="roleFilter">(member={1})</module-option>
<module-option
name="roleAttributeID">CN</module-option>
<module-option
name="allowEmptyPasswords">false</module-option>
</login-module>
<login-module
code="org.jboss.security.auth.spi.RoleMappingLoginModule" flag="required"
>
<module-option
name="password-stacking">useFirstPass</module-option>
<module-option
name="rolesProperties">props/roles.properties</module-option>
</login-module>
</authentication>
</application-policy>
The file roles.properties contains the mapping of AD groups to roles. This way I can map the application policy to be used in jboss-web.xml for the different apps (and admin/jmx-console) without having to edit the names of the application roles.
I have not however managed to map single users to roles, only groups, so I might look into the other module you posted.
Thanks for your help.
BTW allowEmptyPasswords is NASTY! :D
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/615127#615127]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months
[JBoss Messaging] - Need some enlightment regarding Jboss error i've encountered in HP NNM
by marcosmw
marcosmw [http://community.jboss.org/people/marcosmw] created the discussion
"Need some enlightment regarding Jboss error i've encountered in HP NNM"
To view the discussion, visit: http://community.jboss.org/message/615108#615108
--------------------------------------------------------------
Hi All,
I'm new in Jboss nor a developer, only a user that need some enlightment. if can please help
I already search the jboss error i got using google and the search engine in this community. but i can't decide which one is the most nearer caused this.
here are the errors:
|| *No
* || *Error parts
* ||
| 1 | 2011-06-04 12:03:24,109 ERROR [org.jboss.resource.adapter.jms.inflow.JmsServerSession] org.jboss.resource.adapter.jms.inflow.JmsServerSession@2419f11e failed to commit/rollback
javax.transaction.HeuristicMixedException
at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1414)
at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:134)
at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
at org.jboss.resource.adapter.jms.inflow.JmsServerSession$XATransactionDemarcationStrategy.end(JmsServerSession.java:621)
at org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:248)
at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:213)
at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
at java.lang.Thread.run(Thread.java:595) |
| 2 | 2011-06-04 12:03:24,093 ERROR [org.jboss.messaging.util.ExceptionUtil] ConnectionEndpoint[yd-z1uk3iog-1-ob0k3iog-ptajab-27o4c5] sendTransaction [nh-9duk3iog-1-ob0k3iog-ptajab-27o4c5]
javax.jms.JMSException: Failed to route Reference[5354142941544453]:RELIABLE to oa52-7xdc3iog-1-8cpyvgog-ogpxzh-27o4c5
at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendMessage(ServerConnectionEndpoint.java:771)
at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.processTransaction(ServerConnectionEndpoint.java:829)
at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendTransaction(ServerConnectionEndpoint.java:508)
at org.jboss.jms.server.endpoint.advised.ConnectionAdvised.org$jboss$jms$server$endpoint$advised$ConnectionAdvised$sendTransaction$aop(ConnectionAdvised.java:101)
at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N3268650789275322226.invokeNext(ConnectionAdvised$sendTransaction_N3268650789275322226.java)
at org.jboss.jms.server.container.SecurityAspect.handleSendTransaction(SecurityAspect.java:195)
at sun.reflect.GeneratedMethodAccessor224.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:121)
at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N3268650789275322226.invokeNext(ConnectionAdvised$sendTransaction_N3268650789275322226.java)
at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)
at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N3268650789275322226.invokeNext(ConnectionAdvised$sendTransaction_N3268650789275322226.java)
at org.jboss.jms.server.endpoint.advised.ConnectionAdvised.sendTransaction(ConnectionAdvised.java)
at org.jboss.jms.wireformat.ConnectionSendTransactionRequest.serverInvoke(ConnectionSendTransactionRequest.java:82)
at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:862)
at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:101)
at org.jboss.remoting.Client.invoke(Client.java:1858)
at org.jboss.remoting.Client.invoke(Client.java:718)
at org.jboss.remoting.Client.invoke(Client.java:706)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160)
at org.jboss.jms.client.delegate.ClientConnectionDelegate.org$jboss$jms$client$delegate$ClientConnectionDelegate$sendTransaction$aop(ClientConnectionDelegate.java:225)
at org.jboss.jms.client.delegate.ClientConnectionDelegate$sendTransaction_N3268650789275322226.invokeNext(ClientConnectionDelegate$sendTransaction_N3268650789275322226.java)
at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:92)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
at org.jboss.jms.client.delegate.ClientConnectionDelegate$sendTransaction_N3268650789275322226.invokeNext(ClientConnectionDelegate$sendTransaction_N3268650789275322226.java)
at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
at org.jboss.jms.client.delegate.ClientConnectionDelegate$sendTransaction_N3268650789275322226.invokeNext(ClientConnectionDelegate$sendTransaction_N3268650789275322226.java)
at org.jboss.jms.client.delegate.ClientConnectionDelegate.sendTransaction(ClientConnectionDelegate.java)
at org.jboss.jms.tx.ResourceManager.sendTransactionXA(ResourceManager.java:667)
at org.jboss.jms.tx.ResourceManager.prepare(ResourceManager.java:337)
at org.jboss.jms.tx.MessagingXAResource.prepare(MessagingXAResource.java:241)
at org.jboss.resource.adapter.jms.JmsXAResource.prepare(JmsXAResource.java:85)
at org.jboss.resource.connectionmanager.xa.JcaXAResourceWrapper.prepare(JcaXAResourceWrapper.java:93)
at com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord.topLevelPrepare(XAResourceRecord.java:264)
at com.arjuna.ats.arjuna.coordinator.BasicAction.doPrepare(BasicAction.java:2880)
at com.arjuna.ats.arjuna.coordinator.BasicAction.doPrepare(BasicAction.java:2837)
at com.arjuna.ats.arjuna.coordinator.BasicAction.prepare(BasicAction.java:2389)
at com.arjuna.ats.arjuna.coordinator.BasicAction.End(BasicAction.java:1785)
at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:88)
at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1406)
at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:134)
at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
at org.jboss.resource.adapter.jms.inflow.JmsServerSession$XATransactionDemarcationStrategy.end(JmsServerSession.java:621)
at org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:248)
at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:213)
at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
at java.lang.Thread.run(Thread.java:595) |
more information is attached.
can you guys help me? cause i really need to understand this error, and what causing this...
Thanks in Advanced
Marcos
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/615108#615108]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months