[jBPM] - User Task inside Multiple Instances node to do concurrent User Task assignments
by Aadav N
Aadav N [https://community.jboss.org/people/aadav86] created the discussion
"User Task inside Multiple Instances node to do concurrent User Task assignments"
To view the discussion, visit: https://community.jboss.org/message/784851#784851
--------------------------------------------------------------
Dear Community,
With the support I've been receiving from the community members & developers, I have involved myself into this wonderful phenomenon of exploring and making the best use of jBPM5 & BPMN2.0
My current experiment is to combine User Task with Multiple Instances construct involving looping mechanism for an iterative execution. I'm good with generation of multiple task items (User task in my case) sequentially and its completion synchrounously and execution out of Multiple Instances construct is also fine.
https://community.jboss.org/servlet/JiveServlet/showImage/2-784851-20024/... https://community.jboss.org/servlet/JiveServlet/downloadImage/2-784851-20...
*Objective* of my above depicted design is to reduce a lot of manual effort in placing multiple user tasks to achieve a approval workflow of multi levels with more than an user task at every level.
1) To serve the horizontal purpose I'm simply using Multiple Instances node to create concurrent user task assignments.
2) To carry out the vertical level I have manually introduced the looping mechanism.
*Concerns & Queries* about what I'm trying to achieve is
1) If at all I have placed separate User Tasks across the BPMN, associating the name of the tasks with User Task node would have become simple since I would have given the names separately. But in case of my design the User Task which takes the input with the help of Multiple Instances node's collection expression(list) it gets the User (Approver) name alone. I'm wondering how can I associate the name of the task with the User Task node. For Eg:- HR Approval, Admin Approval etc., If the multiple instances node is capable of taking Map object we could have set the Task Name as key and the User name as value.
2) Is there any tweak available for Multiple Instances node with which we can set its property to "Async" because the construct behaves in a synchronized manner meaning only after all the Task assignments(User task in my case) are completed the construct moves forward its control. But there are situations in which I really need to keep the User Tasks triggered out of Multiple Instances be independent of each other.
3) Is it possible to customize the User Task to associate it with an WorkItemHandler. This question should make sense if my understanding about the Domain specific WorkItemHandlers are not wrong.
Guys, please throw me some light on these things as I'm struct and not able to move forward with the other things..
Thanks in Advance,
Aadav
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/784851#784851]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 3 months
[JBoss Web Services] - Netty + Google protobuf causing class loader issue?
by Michael Erdmann
Michael Erdmann [https://community.jboss.org/people/merdmann] created the discussion
"Netty + Google protobuf causing class loader issue?"
To view the discussion, visit: https://community.jboss.org/message/785191#785191
--------------------------------------------------------------
Hallo,
i am trying to use netty together with google protbuf in order to implememt a server running on the Jboss 7.1.
When the client connects to the server i get the following exception:
1:10:34,810 WARNING [org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink] (New I/O server boss #64 ([id: 0x035e9313, /0.0.0.0:8887])) Failed to accept a connection.: *java.lang.NoClassDefFoundError: com/google/protobuf/ExtensionRegistryLite*
at site.boavista.jboss.view.NettyServer$1.getPipeline(NettyServer.java:65) [classes:]
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink$Boss.registerAcceptedChannel(NioServerSocketPipelineSink.java:276) [netty-3.2.6.Final.jar:]
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink$Boss.run(NioServerSocketPipelineSink.java:246) [netty-3.2.6.Final.jar:]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.6.0_24]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.6.0_24]
at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_24]
Caused by: java.lang.ClassNotFoundException: com.google.protobuf.ExtensionRegistryLite from [Module "org.jboss.netty:main" from local module loader @781f6226 (roots: /opt/jboss-as-7.1.1.Final/modules)]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
... 6 more
The exception indicates that the class loader does not see the protobuf jar i am deploying together with my application code. Is there amy
way to make my libraries kown to the server class loader?
I have put the sources here:
https://github.com/merdmann/MyCommunityJBoss https://github.com/merdmann/MyCommunityJBoss
the netty part can be found in the package site.boavista.view.jboss.
Regards
/Michael
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/785191#785191]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 3 months