[JBoss-user] [JBoss jBPM] - Re: How to use pooledActors without Identity Component
kukeltje wrote : hmm I do not (in one go) exactely see what your intentions are since I do not have access to the code (atm) I'll respond later, but feel there should not be a need to override the PooledActor At least I've not missed anything without overriding it. | | Not to be annoying, but have you had a chance to take a look? Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3946957#3946957 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3946957 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: How to use pooledActors without Identity Component
Yes and no, but I should have reported back. We (the company I work for) have no need to be able to use it without a relation to swimlanes etc, so it works for us. I forgot about that (not unimportant) part of the question. As Koen pointed out, your second proposal seems the way to go. Ronald View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3946978#3946978 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3946978 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: How to use pooledActors without Identity Component
ok, great guys, thanks a lot for the help! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3947000#3947000 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3947000 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: How to use pooledActors without Identity Component
Consider the following assigment handler: | public class MyCustomExpressionAssignmentHandler ... { | String expression; | ... | public void assign(Assignable assignable, ExecutionContext ctx) { | // you can probably reuse a lot of the stuff of | // the real ExpressionAssignmentHandler to do | // your work here... | } | ... | } | and the following task: | task ... | assignment class='MyCustomExpressionAssignmentHandler' | expressionexpression-in-your-own-format-goes-here/expression | /assignmetn | .. | /task | IMO this is the simplest solution to provide your own expression assignmenthandler that navigates your own identity module. Or do I miss something? Regards, Koen View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3946485#3946485 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3946485 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: How to use pooledActors without Identity Component
Koen, you are correct, but this is not the use case I am speaking of. I am talking about tasks that are created dynamically via the Java API independently of a process definition/instance. Being the case, this makes it impossible (afaik) to use the assignmenthandler. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3946515#3946515 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3946515 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: How to use pooledActors without Identity Component
You can have action class to do the same thing you did in your custom assigment handler. We have done that to dynamically to change the assigment on the fly. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3946519#3946519 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3946519 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: How to use pooledActors without Identity Component
Yes, I have done that as well, but there is still a problem with pooledActors not working independently of swimlanes and process instances. I want to store a task for a pool of actors that is created by an user without defining or running a process. One can set the actorId but not the pooledActors b/c it requires you to use the identity component and swimlanes. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3946550#3946550 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3946550 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: How to use pooledActors without Identity Component
Ah, I see what you mean now... Sorry for the confusion ;-) I think indeed that your option 2 stated above is the way to go. Regards, Koen View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3946593#3946593 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3946593 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: How to use pooledActors without Identity Component
So we came to two options here for overriding the identity component: 1) Change the core identity component by extending various components (e.g. ExpressionAssignmentHandler and creating some wrappers for my Identity model). 2) Create a custom Task Instance class, override the pooledActor's methods to use my own custom pooledActors class, and then create a hibernate mapping for that. I believe you are suggesting option number 2 at this point. As I delve more into defined processes and begin to have greater numbers of assignment expressions, option 1 will also have to be achieved for ease of programming. Are we on the same page here? If so, will overriding the pooledActors implemetation adversly affect defined processes that have swimlanes (due to foreign key fk_pooledactor_sli on jbpm_pooledactor)? btw, I hope this discussion is helping you as much it is me :) Thanks, Julian p.s. configuring the identity module in one spot would be spectacular View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3946160#3946160 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3946160 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: How to use pooledActors without Identity Component
hmm I do not (in one go) exactely see what your intentions are since I do not have access to the code (atm) I'll respond later, but feel there should not be a need to override the PooledActor At least I've not missed anything without overriding it. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3946180#3946180 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3946180 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: How to use pooledActors without Identity Component
Ronald, could you point me to the resources that need to be understood in order to achieve this? Adding an Identity wrapper to my classes will not override the hibernate mappings existing in jBPM. I imagine I can change these without violating the legal terms of use. The only issue to be aware of is that I have jBPM in a separate database from my users. Are these the actions you are reffering to? Thanks once more. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3945812#3945812 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3945812 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: How to use pooledActors without Identity Component
I'm sure (don't disappoint me ;-) ) you've read 11.11 from the docs, more specifically 11.11.3 which adresses your question about the mappings View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3945906#3945906 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3945906 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: How to use pooledActors without Identity Component
Ok I re-read it and realize I should have been clearer about this before (sorry). I am unsure as how jBPM knows which ExpressionAssignmentHandler to use (aka mine versus jBPMs) when creating tasks without process instances. See 1) http://www.jboss.com/index.html?module=bbop=viewtopict=68876 2) http://www.jboss.com/index.html?module=bbop=viewtopict=68881 From what I gather the process of writing my own ExpressionHandler will only work when running within a process instance that invokes the custom AssignmentHandler vis-a-vis the XML declaration. So in order for me to achieve this in the above context, I would need to invoke a custom ExpressionAssignmentHandler upon creating a custom task in Java. Does this sound right? Thanks, Julian View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3945917#3945917 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3945917 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: How to use pooledActors without Identity Component
independent process tasks using the API should be passed an actor, pooledactor etc. afaik, it is not using the assignmenthandler etc, since it is not part of a processdefinition. Just implement your own code for this. The identitymodule is not configurable yet, imo it should be confiugurable as a service just like the others. (I'll file a jira issue for this) I currently implemented this by changing the source of JpdlXmlReader to not use the defaultimplementations. This way we do not have to specifically add assignmenthandlers in each process. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3945930#3945930 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3945930 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: How to use pooledActors without Identity Component
ok, so I dug a little deeper and it appears that there is no way to do this without replicating the entire identity/demographic data in the jbpm database. So in order to achieve this functionality and only have one set of data to manage, I see only two ways: 1. Drop the foreign key constraint that leads from the jbpm_pooledactor table to the jbpm_taskactorpool table. 2. Create a new table very similar to the jbpm_taskactorpool without a constraint to the jbpm_pooledactor table. This could be linked via a custom TaskInstance class. In both the above scenarios a foreign key will exist to link the task instance to the task actor pool, and each actor in the pool table will be stored alongside that foreign key. The only difference will be the lack of constraints to the identity model of jBPM (e.g. the jbpm_pooledactor table as constraint fk_tskactpol_plact). I presume to have this functionality without adopting the optional jBPM identity model, such a change will be required in the jBPM code. I look forward to any feedback, esp if anyone has an arguement for redundantly storing the identity model. Thanks again. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3945464#3945464 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3945464 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: How to use pooledActors without Identity Component
anonymous wrote : ok, so I dug a little deeper and it appears that there is no way to do this without replicating the entire identity/demographic data in the jbpm database. Not quite. It is not to difficult to implement your own identity provider. You just have to implement a few classes. anonymous wrote : I look forward to any feedback, esp if anyone has an arguement for redundantly storing the identity model. | So here is the feedback. I (in the company I work for) also have implemented our own identity wrapper around some exisiting code we have. We hate duplication ;-) anonymous wrote : Thanks You're welcome View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3945495#3945495 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3945495 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: How to use pooledActors without Identity Component
We are using jBPM 3.1, and in this code try-catch-finally block is ignored: | TaskMgmtSession tmSession = jbpmContext.getTaskMgmtSession(); | TaskInstance ti = tmSession.loadTaskInstance(taskId); | | ti.setPooledActors(actorIds); //String[] actorIds; | ti.setActorId(null); //No unique actor | | jbpmContext.close(); //Hibernate update DB | | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3940907#3940907 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3940907 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: How to use pooledActors without Identity Component
I have code that does exactly what you have written above, however when closing the jBPMSession I get the above hibernate error. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3941129#3941129 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3941129 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: How to use pooledActors without Identity Component
bump, thx View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3940675#3940675 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3940675 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user