[jBPM] - Repeat fork to join
by T-9000 Skynet
T-9000 Skynet [http://community.jboss.org/people/t-9000] created the discussion
"Repeat fork to join"
To view the discussion, visit: http://community.jboss.org/message/602854#602854
--------------------------------------------------------------
Hi All,
I have similar issue with fork to join.
I have task1 going to fork1 , from fork1 spliting to task 3 and task 4, then task 3 going to task 3 decision ( reject goes to task 1 and approve go to join 1)
same with task 4 going to task 4 decision( reject goes to task1 and approve goes to join 1)
here are the senarios :
task 3 decision get approved but task 4 desiciion get rejected, so it goes back to task 1 and then it continues the flow again till both get approved.
I tried multiplicity on join 1 but then I don't know how many times each one will get rejected till both get approved.
how can I handle this situation with join ???
I am using jbpm 4.4
any ideas welcome.
thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/602854#602854]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months
[jBPM] - Embedded SubProcess ignores DataObject and Property
by derikalov
derikalov [http://community.jboss.org/people/derikalov] created the discussion
"Embedded SubProcess ignores DataObject and Property"
To view the discussion, visit: http://community.jboss.org/message/602836#602836
--------------------------------------------------------------
I think it's a bug in jBPMN 5. Tried in versions 5.0.0 to 5.1.0.M1.
In a embedded subprocess I add these nodes:
<property id="_3_Property" itemSubjectRef="_personsItem"/>
<dataObject id="_3_DO" itemSubjectRef="_personsItem" name="DO_2"/>
then, in a Task within the subprocess I am using
<dataOutputAssociation id="_12">
<sourceRef>Dout_3-2-2</sourceRef>
<targetRef>_3_Property</targetRef>
</dataOutputAssociation>
or
<dataOutputAssociation id="_12">
<sourceRef>Dout_3-2-2</sourceRef>
<targetRef>_3_DO</targetRef>
</dataOutputAssociation>
I am getting "Could not find variable scope for variable _3_Property when trying to complete Work Item ..."
"Could not find variable scope for variable _3_DO when trying to complete Work Item ..."
In fact when I dump the process via XmlBPMNProcessDumper, neither Property nor DataObject is even there under Subprocess.
the full BPMN file attached.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/602836#602836]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months
[JBoss Messaging] - Whats the difference between JCA & JBM Redelviery
by Vinay Bommarati
Vinay Bommarati [http://community.jboss.org/people/vinayknr41] created the discussion
"Whats the difference between JCA & JBM Redelviery"
To view the discussion, visit: http://community.jboss.org/message/602834#602834
--------------------------------------------------------------
Hello all
Iam facing some problems in message redelivery and DLQ Handling............Pls help me
Here goes My Requirement In our product :
I have to prompt the user to enter redelivery count & I have to make this as constant redeliery count for all destinations deployed in Jboss
So , my testing for redelivery and the problems i faced are :
a) In destination-Service.xml , i kept maxdeliveryattempts to 10 and delay to 10 seconds...but irrespective of the number , the redelivery
happening only 5 times & the message redirected to DLQ
b) After reading Jboss docs and this community , i found that JCA layer handling the message redelivery and the default redelivery count
will be 5 . We should use DLQmaxResent property inorder for specified number of redeliveries
c) Is it correct ?? what is JCA redelivery and JBM redelivery ?? Is there any way to choose between these two approaches ???
d) Which approcach should i use for my requirement ?? I heard JCA layer dominated JBM redelivery ...is it correct ??
It would be greatly helpful for me and for my team if any body answers my questions or share the links that contains JCA , JBM redelviery logic
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/602834#602834]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months
[jBPM] - Is SessionID & ProcessID required to complete WorkItem ?
by vikas jadon
vikas jadon [http://community.jboss.org/people/vikasjadon] created the discussion
"Is SessionID & ProcessID required to complete WorkItem ?"
To view the discussion, visit: http://community.jboss.org/message/602740#602740
--------------------------------------------------------------
I have question about ProcessID and SessionID and there usage. I will continue to ask after explaining the confusion areas. This is with respect to webapplication, used by multiple users and deployed in clustered env.
EntityManagerFactory emf = Persistence.createEntityManagerFactory( "org.drools.persistence.jpa" );
env = KnowledgeBaseFactory.newEnvironment();
env.set( EnvironmentName.ENTITY_MANAGER_FACTORY, emf );
// create a new knowledge session that uses JPA to store the runtime state. Is this session for the server or I can create per user ? What is best?
// i understand creation session per user will be costly
ksession = JPAKnowledgeService.newStatefulKnowledgeSession( kBase, null, env );
sessionID = ksession.getId(); // i can persist this,
ksession.getWorkItemManager().registerWorkItemHandler("handle",my_handler_obj);
ksession.getWorkItemManager().registerWorkItemHandler("handle2",my_handler2_obj);
//starting the process, I think this is for each user
pi1 =(WorkflowProcessInstance) ksession.startProcess("com.sample.bpmn.wfPOC",parameterMap);
// i can get process id of the process started, so i am in the first workItem now.
processID = pi1.getId(); // i can persist this too.
// i have a method in my handler for getting the workItemId. i persisted this workItemId
workItemId = my_handler_obj.getWorkItemId();
At some time later I would like to complete the workItem, understanding the server is restarted
// I can use JPAKnowledgeService.loadStatefulKnowledgeSession(persisted_sessionID, kBase, null, env); but following also works
ksession = JPAKnowledgeService.newStatefulKnowledgeSession( kBase, null, env );
sessionID = ksession.getId(); // it is different session
ksession.getWorkItemManager().registerWorkItemHandler("handle",my_handler_obj);
ksession.getWorkItemManager().registerWorkItemHandler("handle2",my_handler2_obj);
// I can complete workItem which was left earlier,
ksession.getWorkItemManager().completeWorkItem(workItemId, null);
*My questions:*
**
1. What is the use of sessionID, since i can complete workItem without sessionID? is if useful in this scenerio ? (I can load the session)
2. What is the use of processID since i can complete workItem without processID?? is it useful in this scenerio ? (i can start the process with process id)
3. Is only workItemID sufficient to complete a workItem in realtime? or am i missing something
4. How the knowledge session will work in case of clustered env across the JVM's using the load balancer.
Any help is highly appreciated.
thanks
Vikas
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/602740#602740]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months