[jBPM Users] - Process Variables
by TejJBPM
Hi
I created a new instance of a process and set some variables to it using
// Create a new process instance with the new variables
| Map<String,Object> variables = new HashMap<String,Object>();
| variables.put("employee", "mike");
| variables.put("requestType", "m");
| variables.put("requestDetails","details");
|
| ProcessInstance processInstance = executionService.startProcessInstanceByKey("m",variables);
Now how i do access these variables. I dont see any method at the processinstance level to get all the variables based on process instance id.
Also, Can I add more process variables when the process is moving between task to task. basically I want the process to remember some of the variables until it is completed..I dont know whether i framed the question correctly enough!!
Thanks in advance
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267297#4267297
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267297
16 years, 5 months
[jBPM Users] - Re: JBPM 4.2 - Manage JBPM users - recommended way? How to u
by dejanmr
Thanks for the hint kukeltje,
But, I could not make it work. I have EAR application, on jboss 5.1,a and JBPM service installed with provided ant. I have deployed my custom process, and custom jbpm.cfg.xml, and I can see on database they are stored in (what I believe are) proper blobs. When I start process, it all seem to be fine. But, it seems like my custom class is being ignored (taskService.findGroupTasks returns empty set, although it shouldn't), and debugging this I see my custom class is never been called, or even created.
1) When I put dummy class name, I got error on process deployment, so it looks like my change is being processed in some way.
2) When I try to change jbpm.cfg.xml within \jbpm\jbpm-service.sar\ I got error, obviously because this deployment can not see my custom class, which is in another ear.
3) When I move jbpm-service.sar to my ear, and include it in application.xml, I got cast exception with JuelScriptEngine and javax class. There was jira issue regarding this, but in another context and it is resolved.
What am I doing wrong? What would be correct way of doing this.
Note: My custom class is dependent on lots of stuff, and can not be easy moved to lib or another folder where jbpm-service.sar can see it.
Thanks.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267296#4267296
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267296
16 years, 5 months
[jBPM Users] - Re: JBPM4 Process Image
by sebastian.s
Hello TejJBPM,
1.) if you want to show a process image in the jBPM-console you have to deploy the image as well because it is not generated by the jBPM runtime.
2.) the jBPM-console shows the current state of the process. The console uses the deployed image and puts an arrow (DHTML etc.) on the process image at the appropiate position. The co-ordinates for this are determined via the API and the information originates from the process definition file (g="").
So if you want to show the status in your own application you have to do some image manipulation or do it in a similar way as the console does. It is not that hard. Search for thread in which I was asking certain questions about this.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267288#4267288
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267288
16 years, 5 months
[EJB 3.0 Users] - Re: NamedQuery problem: TABLE is not mapped
by pi4630
Wolfgang, thanks for caring, thumbs up! The book I'm studying does not mention case sensitivity, and I thought the statement would be table related, not class related.
So thank you very much, because after changing the case, it worked.
There's one thing: I have indeed a artnr field and public getters and settes which render it Artnr (getArtnr and setArtnr). I tried your hint first, i.e.
| SELECT a FROM Artikel a ORDER BY a.Artnr but this yields an exception when deploying: ERROR [SessionFactoryImpl] Error in named query: findAllArtikel
| org.hibernate.QueryException: could not resolve property: Artnr of: ser.kap08.Artikel [SELECT a FROM ser.kap08.Artikel a ORDER BY a.Artnr]
If I try with the field case instead, i.e. SELECT a FROM ser.kap08.Artikel a ORDER BY a.artnr
it's fine.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267287#4267287
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267287
16 years, 5 months
[JMX] - Re: Mbean depends on deployment of EJB3 jar?
by sverker
Hi
This is the error message I get:
13:43:08,456 WARN [HDScanner] Failed to process changes
| org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
|
| DEPLOYMENTS MISSING DEPENDENCIES:
| Deployment "com.limetransit.sms:service=LimeManagement" is missing the following dependencies:
| Dependency "jboss.j2ee:ear=LimeSms-1.2-SNAPSHOT.ear,jar=ejb3-limesms-1.2-SNAPSHOT.jar,service=EJB3" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.j2ee:ear=LimeSms-1.2-SNAPSHOT.ear,jar=ejb3-limesms-1.2-SNAPSHOT.jar,service=EJB3' **")
|
| DEPLOYMENTS IN ERROR:
| Deployment "jboss.j2ee:ear=LimeSms-1.2-SNAPSHOT.ear,jar=ejb3-limesms-1.2-SNAPSHOT.jar,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.j2ee:ear=LimeSms-1.2-SNAPSHOT.ear,jar=ejb3-limesms-1.2-SNAPSHOT.jar,service=EJB3' **
|
| at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
| at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
| at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
| at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
| at java.lang.Thread.run(Thread.java:619)
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267285#4267285
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267285
16 years, 5 months