[JBoss jBPM] - Re: Indentityservice- Jbpm4
by shekharv
I was working against CR1 code. I do not have a build of current trunk to comment on whether or not it works,
Did you try against CR1?
Is there a particular reason to go against trunk code directly? Something you cannot wait to use till it is officially out :) ?.
I will let you know if I see anything,
Regarding the solution that you were trying out, it is not something that would not work, but it is not something I would do.
It still ties in your application domain a little too close to that of the jbpm domain. Ideally you would want them to be separated out and joined together only in a more versatile 'service' or 'application' layer.
It would just be too tough to change anything about the users going down the line, which at some point or the other, always happens.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240577#4240577
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240577
16 years, 10 months
[JBoss jBPM] - Re: Help needed in deploying 'par' to JBoss server
by kukeltje
anonymous wrote :
| -> Now the Code runs successfully without any errors but the file is not deployed when i checked in jBPM console.
| -> I tried to get the list of process definitions. The size of List is found to be ZERO. This means that my code is not able to reach the jBPM hypersonic DB.
You try to retrieve the processdefinition list in the same application where you deploy the definition? If so, is that after the context is closed and reopened? If not, try this.
anonymous wrote : I used these two methods.
| O ProcessDefinition.parseParZipInputStream
| O deployProcessDefinition
|
| What is the jBPM class that i should actually use ?
|
These are fine, no problem.
anonymous wrote : Is there a jBPM community article that discuss this scenario ?
Not specifically, but all the jBPM unittests do it this way, but you are on the right track.
anonymous wrote : How can i gain visiblity to the jBOSS deployment directory
| The JBoss deployment directory has nothing to do with deploying processdefinitions, at least not in jBPM 3
anonymous wrote :
| and connectivity to the jBPM database ?
|
Turn on the debug level of jBPM and hibernate to see if there is something going on
anonymous wrote :
| Do i need to specify somewhere, like the jBPM database used & server path in a config file ?
If this is from eclipse, yes, you have to configure this in the hibernate.cfg.xml file
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240553#4240553
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240553
16 years, 10 months
[JBoss jBPM] - Re: Indentityservice- Jbpm4
by nilspreusker
Hi shekharv, thanks for the hint. However, I've seen your post before and tried the configuration that you mentioned there, but it doesn't seem to work with the current trunk version of jBPM4. I just realized, though, that there might be a better way to achieve what I'm trying. I'm integrating jBPM with an application that has its own User implementation. Now I want jBPM to use the same user table that my application is using. My initial idea was to implement my own IdentitySession and cast the users that I retrieve into org.jbpm.api.identity.User objects. But now I'm thinking that it would probably be better to just tell jBPM how to access the user table of my application by modifying the hibernate mapping of org.jbpm.api.identity.User. Maybe someone can give me a hint whether I'm heading into the right direction and (if you're feeling very generous:) give me some hints which files to edit to get the user mapping tweaked to my needs. Thanks in advance!
Nils
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240512#4240512
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240512
16 years, 10 months
[JBoss jBPM] - Re: Help needed in deploying 'par' to JBoss server
by vignesh57
Hi ronald,
Thanks for the reply & the humorous quote !
And F.Y.K.I, i am trying this for more than 2 days & also this is the first ever FORUMN POST in my life !!!
And Sorry for giving less information. i am a newbie to jBPM and NOT a jBPM architect(like u).
There are two ways i know of deploying a process definition.
O Use the DEPLOYMENT tab while designing the jPDL in Eclipse IDE
O Use the "Deploy Process" option in jBPM console, choose the par file & deploy it.
Automating deployment....
These are manual tasks. I am trying to automate it. I also saw Ant Scripts that deploy a par but i want to do it through java code.
What i tried...
What i posted previously is a stand-alone java code. I found that it is not able to connect to the jBPM database.
-> While parsing the source file with parsePar, i got a classNotFound exception which i got rid of by importing the Java Transaction API(jta.jar) to Eclipse Build path.
-> Now the Code runs successfully without any errors but the file is not deployed when i checked in jBPM console.
-> I tried to get the list of process definitions. The size of List is found to be ZERO. This means that my code is not able to reach the jBPM hypersonic DB.
I used these two methods.
O ProcessDefinition.parseParZipInputStream
O deployProcessDefinition
What is the jBPM class that i should actually use ?
Is there a jBPM community article that discuss this scenario ?
How can i gain visiblity to the jBOSS deployment directory and connectivity to the jBPM database ?
Do i need to specify somewhere, like the jBPM database used & server path in a config file ?
My Enviroment:
Server : JBoss 4.2.X
jBPM : 3.X
Database : Default db. (Hypersonic)
Please ask me if you need any other information regarding this.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240493#4240493
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240493
16 years, 10 months
[JBoss jBPM] - Re: EJB Timer Lookup problem in BPEL
by zoegraddy
I am also seeing the "org.jbpm.JbpmException: ejb timer entity lookup" exception but it appears to be some sort of bootstrap issue. My process definition has a decision node where one possible path goes to a task-node with a task that has a timer. The other path does not have any timers. This exception is thrown each time a process instance reaches the timer and the timer does not fire when the due date is reached. This results in process instances sitting at the timer indefinitely.
The only workaround I have found is to immediate walk a process instance through the non-timer path of the process definition after jboss starts up (we have jbpm deployed inside jboss). Then, when any subsequent processes take the timer path, no exception is thrown and everything works perfectly. This is of course not an ideal solution as we have to remember to do this hack each time our server starts up.
Any help is much appreciated!
Zoe
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240487#4240487
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240487
16 years, 10 months
[JBoss jBPM] - jbpm-4.0.CR1 can be used already or is only for testing???
by jwerkmeister
Many of the examples only work when you run them with JUNIT and are excluded from the ANT file. So CR1 is only for testing for now???
| <jar destfile="${jbpm.home}/examples/target/examples.bar">
| <fileset dir="${jbpm.home}/examples/src">
| <include name="**/*.jpdl.xml" />
| <exclude name="org/jbpm/examples/task/swimlane/process.jpdl.xml" />
| <exclude name="org/jbpm/examples/task/candidates/process.jpdl.xml" />
| <exclude name="org/jbpm/examples/concurrency/graphbased/process.jpdl.xml" />
| <exclude name="org/jbpm/examples/timer/repeat/process.jpdl.xml" />
| <exclude name="org/jbpm/examples/script/text/process.jpdl.xml" />
| <exclude name="org/jbpm/examples/decision/handler/process.jpdl.xml" />
| <exclude name="org/jbpm/examples/mail/template/process.jpdl.xml" />
| <exclude name="org/jbpm/examples/script/expression/process.jpdl.xml" />
| <exclude name="org/jbpm/examples/task/assignee/process.jpdl.xml" />
| <exclude name="org/jbpm/examples/mail/inline/process.jpdl.xml" />
| <exclude name="org/jbpm/examples/mail/template/process.jpdl.xml" />
| <exclude name="org/jbpm/examples/eventlistener/process.jpdl.xml" />
| <exclude name="org/jbpm/examples/timer/event/process.jpdl.xml" />
| <exclude name="org/jbpm/examples/task/assignmenthandler/process.jpdl.xml" />
| <exclude name="org/jbpm/examples/java/JavaInstantiateTest.java" />
| </fileset>
| </jar>
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240406#4240406
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240406
16 years, 10 months