[jboss-user] [JBoss jBPM] - Re: Id of process starter

2008-10-10 Thread yozh1k
thx for help =) 

Now it's working. But I used processcontext variable instead of swimlane and 
ActorId...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4181398#4181398

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4181398
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Id of process starter

2008-10-10 Thread kukeltje
that is a completely different solution, but of course can be done if you want 
it

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4181427#4181427

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4181427
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Id of process starter

2008-10-06 Thread Jump
kukeltje wrote : you cannot have an assignment in it just leave it empty 
and set the actor id with the api on the jbpm context when starting a process

Would You please clear that for me. Do You mean, that I cannot use assignment 
statement inside swimlane


  | swimlane name=initiator
  | 
  | assignment actor-id=#{actor.id}/
  | 
  | /swimlane
  | 

or I cannot use swimlane in start task


  | start-state name=Start
  | task name= 'taskforinitiator' swimlane='initiator'/
  | transition to=UserProcessNum/transition
  | /start-state
  | 

or I should care about injecting Actor instance into JBPMContext before 
starting the process?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4180496#4180496

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4180496
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Id of process starter

2008-10-06 Thread kukeltje
not in the swimlane used in thae start task.

Yes, you should set the actor id yourself

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4180497#4180497

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4180497
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Id of process starter

2008-10-05 Thread yozh1k
Thx for answer first of all.

I tried such way. But it's not working.

process-definition  xmlns=  name=todo
  | swimlane name='initiator'
  | assignment actor-id=#{actor.id}/
  | /swimlane
  | 
  | start-state name=Start
  | task name= 'taskforinitiator' swimlane='initiator'/
  | transition to=UserProcessNum/transition
  | /start-state
  | 
  | 
  | task-node name=todo
  | task name=todo description=#{todoList.description}
  | assignment actor-id=#{actor.id}/
  | /task
  | transition to=done/transition
  | /task-node
  | 
  | decision name=UserProcessNum
  | handler class=org.jboss.decisiontest.UserProcessNumHandler 
/handler
  | transition to=todo name=ok/transition
  | transition to=done name=2much/transition
  | /decision
  | 
  | 
  | end-state name=done/end-state
  | 
  | 
  | /process-definition

public class UserProcessNumHandler implements DecisionHandler {
  | public String decide(ExecutionContext ec){
  | String acId = 
ec.getProcessInstance().getTaskMgmtInstance().getSwimlaneInstance(initiator).getActorId();
  
  | return ok;
  | 
  | }
  | }
  | 

And result is...

  | 19:25:53,208 FATAL [application] org.jbpm.graph.def.DelegationException
  | javax.faces.el.EvaluationException: org.jbpm.graph.def.DelegationException
  | at 
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
  | at 
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
  | at javax.faces.component.UICommand.broadcast(UICommand.java:383)
  | at 
org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
  | at 
org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
  | at 
org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
  | at 
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
  | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  | at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
  | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
  | at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
  | at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at 
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
  | at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
  | at 

[jboss-user] [JBoss jBPM] - Re: Id of process starter

2008-10-05 Thread kukeltje
you cannot have an assignment in it just leave it empty and set the actor 
id with the api on the jbpm context when starting a process

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4180440#4180440

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4180440
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Id of process starter

2008-10-02 Thread kukeltje
declare a swimlane on the start-task and that will be filled with the actor-id 
that started the process (presuming you set the actor initially, as does the 
jbpm web console)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4180025#4180025

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4180025
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user