[JBoss jBPM] - How to use FindTaskInstances in multiple transitions?
by MindTheGap
Hi,
Im newbie in jBPM and i got a simple question for the experts of this forum. I've got a process definiton like this:
Start->A
A->B
A->C
B->C
C->End
A, B and C are task-nodes with one task each, but its not mandatory (i can change that if you got a solution).
After that, i want to see in a "pending tasks interface" the work for a certain user (authenticated).
If i got this users:
- User1 with permissions to B and C
- User2 with permissions to C
- User3 with permissions to A
Then, when the User3 enters in A, he does A.start() and A.end().:
After that, the "pending tasks interface" for the users must be:
- User1: one
- User2: one
- User3: none
Using FindTaskInstances(ActorId) i cannot obtain the task instances because when i do A.end() he jumps to the first transition, in this case to B.
I read the documentation about the various types of nodes in jBPM, but the decision node and the fork node are not the solutions for my case, because the decision in choose the B or C is made by the user in the interface.
Can you help me?
Thanks in advance!!
RQ_
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057779#4057779
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057779
18Â years, 10Â months
[JBoss Seam] - Nightly build error (2007-06-25): unable to deploy applicati
by ylazzari
Hi,
I was trying to test the fix mentioned in the following thread:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=111705
So I downloaded the latest snapshot (2007-06-25) but now my application won't start. I get the following error:
| [#|2007-06-26T10:26:30.116-0400|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=15;_ThreadName=pool-1-thread-7;_RequestID=436d7d4f-fa9a-477c-b03e-18e1ac302820;|java.lang.UnsupportedOperationException
| at com.sun.faces.config.ConfigureListener$InitFacesContext.getViewRoot(ConfigureListener.java:1690)
| at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:113)
| at com.sun.faces.util.MessageUtils.getExceptionMessageString(MessageUtils.java:277)
| at com.sun.faces.util.Util.createInstance(Util.java:477)
| at com.sun.faces.util.Util.createInstance(Util.java:436)
| at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:617)
| at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:503)
| at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:402)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4493)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:5150)
| at com.sun.enterprise.web.WebModule.start(WebModule.java:308)
| at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:45)
| at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:283)
| at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:317)
| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
| at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
| at java.util.concurrent.FutureTask.run(FutureTask.java:138)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
| at java.lang.Thread.run(Thread.java:619)
| |#]
|
| [#|2007-06-26T10:26:30.132-0400|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=15;_ThreadName=pool-1-thread-7;_RequestID=436d7d4f-fa9a-477c-b03e-18e1ac302820;|WebModule[/moxxi-prototype]PWC1275: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
| javax.faces.FacesException: java.lang.UnsupportedOperationException
| at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:408)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4493)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:5150)
| at com.sun.enterprise.web.WebModule.start(WebModule.java:308)
| at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:45)
| at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:283)
| at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:317)
| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
| at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
| at java.util.concurrent.FutureTask.run(FutureTask.java:138)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: java.lang.UnsupportedOperationException
| at com.sun.faces.config.ConfigureListener$InitFacesContext.getViewRoot(ConfigureListener.java:1690)
| at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:113)
| at com.sun.faces.util.MessageUtils.getExceptionMessageString(MessageUtils.java:277)
| at com.sun.faces.util.Util.createInstance(Util.java:477)
| at com.sun.faces.util.Util.createInstance(Util.java:436)
| at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:617)
| at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:503)
| at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:402)
| ... 12 more
| |#]
|
| [#|2007-06-26T10:26:35.373-0400|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=15;_ThreadName=pool-1-thread-7;_RequestID=436d7d4f-fa9a-477c-b03e-18e1ac302820;|WebModule[/moxxi-prototype]PWC1275: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
| java.lang.RuntimeException: Could not create Component: org.jboss.seam.core.manager
| at org.jboss.seam.init.Initialization.addComponent(Initialization.java:908)
| at org.jboss.seam.init.Initialization.installComponents(Initialization.java:839)
| at org.jboss.seam.init.Initialization.init(Initialization.java:506)
| at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4493)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:5150)
| at com.sun.enterprise.web.WebModule.start(WebModule.java:308)
| at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:45)
| at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:283)
| at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:317)
| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
| at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
| at java.util.concurrent.FutureTask.run(FutureTask.java:138)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: java.lang.IllegalArgumentException: no such setter method: org.jboss.seam.faces.FacesManager.conversationIsLongRunningParameter
| at org.jboss.seam.util.Reflections.getSetterMethod(Reflections.java:220)
| at org.jboss.seam.Component.initInitializers(Component.java:431)
| at org.jboss.seam.Component.<init>(Component.java:257)
| at org.jboss.seam.Component.<init>(Component.java:207)
| at org.jboss.seam.init.Initialization.addComponent(Initialization.java:894)
| ... 15 more
| |#]
|
I also tried building from the sources in the CVS repository but I get the same error. Does that ring a bell to anyone? My application starts fine if I use the 1.3.0 ALPHA that was released recently.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057771#4057771
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057771
18Â years, 10Â months
[JBoss Seam] - Problem trying to do a delete
by rithmaa
Hi
I have jboss-seam1.2.1GA jboss4.0.5 and Icefaces 1.6 DR#5.
My application was generated with database schema from icefaces-seam-gen.
I have a page that lists out my data using ice:dataTable, and I am trying to incorporate all the CRUD functionalities on that page.
I am using the ice:rowSelector to select a particular row, in order to make modifications & save or delete.
For now, I am able to edit and save information on this page. using #{home.persist} in the action attribute of the commandButton for saving
But when I try to delete using #{home.remove} it doesnt seem to be working. It does nothing. just refreshes the page. Am I missing something here?
I have already spent a couple of days just on delete. Please help.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057769#4057769
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057769
18Â years, 10Â months
[JBoss Portal] - Re: problem when deploying IPC portlet
by matt4400
What does it means ? because there is that in my ResourceListePortlet.java :
| public class ResourceListePortlet extends GenericPortlet {
|
| public void init(PortletConfig pConfig)throws PortletException{
| super.init(pConfig);
| }
|
| public void processAction(ActionRequest request,ActionResponse response)throws PortletException, PortletSecurityException, IOException{ String color = request.getParameter("color");
| String text = request.getParameter("sometext");
| if(color != null && text != null)
| {
| response.setRenderParameter("color", color);
| response.setRenderParameter("sometext", text);
| }
| }
|
| protected void doView(RenderRequest request,RenderResponse response)throws PortletException, PortletSecurityException, IOException{ String color = request.getParameter("color");
| String text = request.getParameter("sometext");
| response.setContentType("text/html");
| PrintWriter writer = response.getWriter();
| if(text != null)
| {
| writer.write("<div style=\"color:" + color + ";\">");
| writer.write(text);
| writer.write("</div>");
| }
| else
| {
| writer.write("Use the portlet on the left to affect behaviour in this portlet");
| }
|
| writer.close();
| }
|
| public static class Listener implements PortalNodeEventListener{
|
| public PortalNodeEvent onEvent(PortalNodeEventContext context, PortalNodeEvent event) {
| PortalNode node = event.getNode();
|
| // Get node name
| String nodeName = node.getName();
|
| // See if we need to create a new event or not
| WindowActionEvent newEvent = null;
| if(nodeName.equals("AddResourcePortlet") && event instanceof WindowActionEvent){
| WindowActionEvent wae = (WindowActionEvent)event;
| PortalNode me = node.resolve("../ResourceListePortlet");
| if(me != null){
| newEvent = new WindowActionEvent(me);
| newEvent.setMode(wae.getMode());
| newEvent.setParameters(wae.getParameters());
| }
| }
| if(newEvent != null){
| return newEvent;
| }else{
| return context.dispatch();
| }
| }
|
| }
| }
|
I have juste copy and paste the HelloWolrdIPC with my own classes
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057768#4057768
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057768
18Â years, 10Â months