[jBPM] New message: "Re: Test workflow with JUnit"
by tamisier laure
User development,
A new message was posted in the thread "Test workflow with JUnit":
http://community.jboss.org/message/528183#528183
Author : tamisier laure
Profile : http://community.jboss.org/people/lauretamisier
Message:
--------------------------------------------------------------
here he test which runs !!!! t
import org.jbpm.api.ProcessInstance;
import org.jbpm.test.JbpmTestCase;
public class StateTest extends JbpmTestCase {
String deploymentId;
protected void setUp() throws Exception {
super.setUp();
deploymentId = repositoryService.createDeployment()
.addResourceFromClasspath("fr/ucanss/workflow/test.jpdl.xml")
.deploy();
}
protected void tearDown() throws Exception {
repositoryService.deleteDeploymentCascade(deploymentId);
super.tearDown();
}
public void testMainScenario() {
ProcessInstance processInstance =
executionService.startProcessInstanceByKey("test");
assertNotNull("instance should be not null", processInstance);
for (String act:processInstance.findActiveActivityNames()){
System.out.println("Activity " + act);
}
assertActivityActive(processInstance.getId(), "ok");
executionService.signalExecutionById(processInstance.getId(), "to end");
assertProcessInstanceEnded(processInstance);
}
}
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528183#528183
16 years, 1 month
[jBPM] New message: "Linking sub processes to parent processes through SQL"
by Simon Clerck
User development,
A new message was posted in the thread "Linking sub processes to parent processes through SQL":
http://community.jboss.org/message/528178#528178
Author : Simon Clerck
Profile : http://community.jboss.org/people/sclerck
Message:
--------------------------------------------------------------
Hi,
Apologies if this has been discussed before.
Through SQL, we are trying to resolve the historical path of a particular process instance.
The problem is that the process definition includes the use of sub processes.
So, ideally, we would like to retrieve something like this:
- Start
- Sub process - action 1
- Main process - action 2
- End
But in the tables JBPM4_HIST_ACTINST and JBPM4_HIST_PROCINST, I can't find a way to link the sub process to its parent.
I thought the column KEY_ in JBPM4_HIST_PROCINST might be useful, but for subprocesses these are set to NULL.
Can someone please let me know if this is possible?
Thanks,
Simon
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528178#528178
16 years, 1 month
[JBoss Microcontainer Development] New message: "Re: JBDEPLOY-226 - DeployerClient change extension"
by Adrian Brock
User development,
A new message was posted in the thread "JBDEPLOY-226 - DeployerClient change extension":
http://community.jboss.org/message/528172#528172
Author : Adrian Brock
Profile : http://community.jboss.org/people/adrian@jboss.org
Message:
--------------------------------------------------------------
I'm saying this feature is irrelevant to the problem.
Whether it can resolve circular references is a seperate issue for the dependency mechanism to spot.
The order in which you change the state of things shouldn't make a difference.
If A depends upon B which then depends upon A all at stage 1, it does not matter whether you do:
change(A, stage1);
change(A, stage2);
change(B, stage1);
change(B, stage2);
checkComplete(A, B);
or
change(A, stage1);
change(B, stage1);change(A, stage2);
change(B, stage2);
checkComplete(A, B);
The result should be the same.
If you add more checkComplete()s between the steps then obviously it is going to report an incomplete
deployment until A and B are both at stage1.
change(A, stage1);
checkComplete(A); // Oops, IncompleteDeploymentException - A depends B which is not in the correct state yet, so A is not at stage 1 either.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528172#528172
16 years, 1 month
[JBoss Microcontainer Development] New message: "Re: JBDEPLOY-226 - DeployerClient change extension"
by Ales Justin
User development,
A new message was posted in the thread "JBDEPLOY-226 - DeployerClient change extension":
http://community.jboss.org/message/528169#528169
Author : Ales Justin
Profile : http://community.jboss.org/people/alesj
Message:
--------------------------------------------------------------
> I don't see why resolving circular dependencies needs this feature?
> The problem with Thomas's implementation (if it is like what he has done elsewhere)
> is that he is doing a checkComplete() too often.
> He should check them all at the end, not during/after every single move. :-)
I doesn't.
But it would definitely be good if it was the other way around - this feature needs circular resolving.
Otherwise it doesn't make much sense, if the deployments are not actually moved into the state you wanted them to move.
At least for the "valid" circular deployments -- which is often the case in OSGi -- according to TCK.
I don't see how checking at the end would help. They would still not be in the "right" state.
Or are you saying Controller::change(deploymentContext, state) already knows how to resolve this?
e.g. deployment A imports some B's packages, and vice versa, and afterwards we would expect both of them in past Describe state
(or how do valid OSGi circular depencies look like?)
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528169#528169
16 years, 1 month
[jBPM] New message: "jbpm installation error win 7"
by Hakan Moral
User development,
A new message was posted in the thread "jbpm installation error win 7":
http://community.jboss.org/message/528167#528167
Author : Hakan Moral
Email : hakanm(a)gmail.com
Profile : http://community.jboss.org/people/hakanm
Message:
--------------------------------------------------------------
I am trying to install jbpm 4.1/4.2 on jboss 5.0.0.GA/5.1.1.GA on a windows 7 machine, but in demo.setup.jboss target, when it comes to install.examples.into.jboss target there are errors and none of the examples are installed. Also when I run jboss after that only a "testplatform" with an empty screen is seen in the admin console of jboss. I am adding the server log. If someone can help on what is wrong I wil appreciate. Thanks in advance.
Hakan
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/528167#528167
16 years, 1 month