[jBPM Users] - Re: Deploying JBPM project created by Eclipse in Tomcat serv
by kukeltje
"Nanaki" wrote :
|
| | ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource(
| | "org/xxx/definitions/yyy/processdefinition.xml");
| |
| But i still don't understand (I didn't find a true example on internet) how to "use the jbpm api and retrieve the jpdl file from" like you said.
|
The parseXmlResouce above does this...
"Nanaki" wrote :
| Because now, as i understand, i can do all the movements i desire with the token on the workflow, but can't display it on the workflow image.
|
| Can you show me a part of java code that retrieve this image from the "processdefinition.xml" and how to display it (and update it at each time that we move the token with the method token.signal("xxx")
|
|
The image is not retrieved from the processdefinition.xml, it is a separate image in a deployment. It is generated by the gpd. Look at the ant task in the source for deployments on how to also deploy this image.
"Nanaki" wrote :
| I'd like to have for example the same interface like when we deploy with Jboss server (the image with a red square around the node).
|
That is part of the console. Look at the sourcecode of that on how the image and processdefinition.xml together are used to implement this.
"Nanaki" wrote :
| In a second time, is there any other method via JBPM 4.1 ?
| My collegue asks if there's a simple method by using the processdefinition.xml file, and the template folder deployed in the Webapps folder when installing JBPM 4.1 ?
|
|
I do not get what you mean here?
"Nanaki" wrote :
| Have you ever tested this version since its release ?
|
I used the nightly on a regular basis, but not fully tested it, why?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4253167#4253167
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4253167
15 years, 4 months
[jBPM Users] - Re: jBPM admin privilege clarification
by kukeltje
Satheesh (assuming that is your name)
>From al your posts I get the impression that you are comparing serveral solutions. Your questions are however that short and often in non-standard terminology that it is hard for us to comment in detail or comment at all. I can understand that you have limited time, but posting these kinds of short blurry questions does not help much.
E.g. If you have an application with job queues, completed jobs, exceptions etc... are those jBPM job queues? You mention they are part of an application, so no relation to jBPM? If they are just jbpm related, why mention the app...
In the jBPM console, privileges are only partly implemented, experimenting a little will give you the best impression.
Regarding your second question, A process assigned to roles? How? In what way? Process steps, especially tasks, can be assigned to users and/or roles(groups).
I
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4253166#4253166
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4253166
15 years, 4 months
[jBPM Users] - Re: Deploying JBPM project created by Eclipse in Tomcat serv
by Nanaki
Ok, a couple days ago, I studied the door example.
So I have understand this simple sample (how to get a token, how to move it to differents state ...).
So now, I'd like to see this test directly on the worflow image.
For example, I have a JUnit test testing some movement of the token.
anonymous wrote : ou can also use the jbpm api and retrieve the jpdl file from e.g. your war and use a startup servlet to deploy it and have some checks around that to see if it is not already deployed.
I understand how to deploy a process via this part of code:
JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
| ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource(
| "org/xxx/definitions/yyy/processdefinition.xml");
| jbpmContext.deployProcessDefinition(processDefinition);
| jbpmContext.close();
I also understand how to run a process via:
jbpmContext = jbpmConfiguration.createJbpmContext();
| processInstance = jbpmContext.newProcessInstance("processname");
|
| contextInstance = processInstance.getContextInstance();
| contextInstance.setVariable("var", myVar);
|
| processInstance.getRootToken().signal();
|
So i know how to move the token by using different "signal".
But i still don't understand (I didn't find a true example on internet) how to "use the jbpm api and retrieve the jpdl file from" like you said.
Because now, as i understand, i can do all the movements i desire with the token on the workflow, but can't display it on the workflow image.
Can you show me a part of java code that retrieve this image from the "processdefinition.xml" and how to display it (and update it at each time that we move the token with the method token.signal("xxx")
I'd like to have for example the same interface like when we deploy with Jboss server (the image with a red square around the node).
=======================
In a second time, is there any other method via JBPM 4.1 ?
My collegue asks if there's a simple method by using the processdefinition.xml file, and the template folder deployed in the Webapps folder when installing JBPM 4.1 ?
Have you ever tested this version since its release ?
Thank you ^^ (again :p)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4253151#4253151
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4253151
15 years, 4 months