[JBoss jBPM] - Re: From BPMN (STP BPMN Editor) to BPEL
by kukeltje
"miketech" wrote : I am drawing my BPMN diagrams with the Eclipse SOA Tools Project BPMN Editor. Do you know a recommend way to get this diagram to BPEL so that it can be run within JBoss?
JBoss is a company, it does not 'run' anything. JBoss jBPM BPEL is WS-BPEL 2.0 compliant and should be able to run WS-BPEL 2.0 compliant definitions
"miketech" wrote : I've read that JBoss is BPEL 2.0 compliant, thus if I find a solution to transform BPMN to BPEL and refine it with the Eclipse BPEL Editor it should be able to run the process within BPEL.
If the refinement is WS-BPEL 2.0 compliant it should and you run a WS-BPEL 2.0 compliant 'engine' like JBoss jBPM BPEL somewhere e.g. on JBoss AS 4.2
"miketech" wrote : Or are there any problems I haven't seen yet? Making sure the outcome of the reninement is WS-BPEL 2.0 compliant ;-)
Otherwise I have no idea.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173990#4173990
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173990
17 years, 7 months
[JBoss jBPM] - Re: Transient variables between process and subprocess
by nizzy
Hi Guys,
I know this was a long time ago, but I'm trying to access a super-process transient variables via a sub-process.
In an ActionHandler I extract the transient variable map. When in the super-process the map contains the expected variables, however the sub-process map is null.
Is there anything special I need to do, have done, so that the
| subContextInstance.setTransientVariables(superContextInstance.getTransientVariables());
|
line of code in ProcessState is executed?
Currently all I'm doing is using the super-process to find the sub-process and signalling the sub-process.
public void signalSubProcess(long processInstanceId, String transitionName) {
| log.info("Signalling Sub Process");
|
| // Find ProcessInstance
| JbpmContext ctx = JbpmConfiguration.getInstance().createJbpmContext();
| try {
| GraphSession gs = ctx.getGraphSession();
| gs.lockProcessInstance(processInstanceId);
|
| ProcessInstance instance = ctx.getProcessInstanceForUpdate(processInstanceId);
| log.info("Root Token of instance is " + instance.getRootToken().getId());
|
| ProcessInstance subInstance = instance.getRootToken().getSubProcessInstance();
| if (instance.hasEnded()) {
| log.info("SubProcess Instance has already ended so cannot signal");
| }
|
| if (subInstance != null) {
| signal(subInstance, transitionName);
| } else {
| String msg = "ProcessInstance not found";
| log.info(msg);
| throw new RuntimeException(msg);
| }
|
| } finally {
| ctx.close();
| }
| }
Am I calling the sub-process incorrectly, and as a result not executing the code included in the ProcessState class?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173988#4173988
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173988
17 years, 7 months
[JBoss jBPM] - Re: Authorization in jBPM
by philso
Thank you for your reply Ronald, I am surprised to see authorization is not implemented in jBPM. We're not using the web front end for task management so we'll have an API that will be called passing in a Process Instance Id and userid to signal the token to move onwards. Is there another way to prevent unauthorized users from executing task they're not authorized to. I think we need to implement authorization at the jBPM layer because we need to prevent the following scenario.
User A (employee) creates a purchase order (Task 1)
User B (another employee at same level as user A, User A NOT allowed) to check purchase order (Task 2)
User C (manager) approves the purchase order (Task 3)
We are planning on assigning swimlanes to each of these tasks. Then we'll use the expression assignment handler to work out that User A or B can do Task 1, and Task 2 can't be carried out by same user a Task 1. Then Task 3 will have another swimlane (Manager). I've seen the documentation on the expression assignment handler syntax, is there any worked examples to view?
How would you recommend we implement this?
Thanks, Phil
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173678#4173678
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173678
17 years, 7 months
[JBoss jBPM] - jbpm in client/server environment
by thomas.kratz
HI, I'm just getting started with jbpm, and I'm not sure if I got all of its concets right. Seam intergation looks nice, but that doesnt help me as I have a remote client application. I tried a simple example, got actions fired and assigned a task. Now comes what I dont understand. I have a task controller that is able to map task variables to a bean or something. I implemented a remote service that gives me active tasks for an actor, that works fine. Do I understand it right that the process has no idea about what the task (==user interaction) actually does ? Do I have to find a way to instruct my remote client what has to be done when a certain task is on the list ? Or is there any way to put some hint on the task that helps the client know what has to be done ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173675#4173675
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173675
17 years, 7 months