This content has been marked as final.
Show 8 replies
-
1. Re: Swimlane, groups and their fields
kukeltje Sep 15, 2008 12:27 PM (in response to provajbpm)use [ c o d e ] instead of [ q u o t e ]
-
2. Re: Swimlane, groups and their fields
kukeltje Sep 15, 2008 4:33 PM (in response to provajbpm)Look at the api. on the TaskInstance there is a method called getVariables
-
3. Re: Swimlane, groups and their fields
provajbpm Oct 3, 2008 6:24 AM (in response to provajbpm)i've do
TaskMgmtSession taskSession = jbpmContext.getTaskMgmtSession(); List<TaskInstance> listaTask = TaskSession.findTaskInstancesByProcessInstance(processInstance);
but my list is void !!!
on my start node there are two groups of user like here:<swimlane name="Clienti"> <assignment expression="group(Clienti)"></assignment> </swimlane> <swimlane name="TourOperator"> <assignment expression="group(TourOperator)"></assignment> </swimlane> <start-state name="richiesta pacchetto vacanza"> <task name="Richiesta domanda" swimlane="Clienti"> <controller> <variable name="data partenza" access="read,write,required" mapped-name="Data di partenza"></variable> </controller> </task> <transition name="richiesta verifica" to="verifica disponibilita"></transition> </start-state>
-
4. Re: Swimlane, groups and their fields
salaboy21 Oct 3, 2008 8:07 AM (in response to provajbpm)Before your query for obtain the tasks
TaskMgmtSession taskSession = jbpmContext.getTaskMgmtSession(); List<TaskInstance> listaTask = TaskSession.findTaskInstancesByProcessInstance(processInstance);
Do you create your process Instance right? -
5. Re: Swimlane, groups and their fields
provajbpm Oct 3, 2008 8:11 AM (in response to provajbpm)Of course:
jbpmConfiguration = JbpmConfiguration.getInstance("WEB-INF/jbpm.cfg.xml"); jbpmContext = jbpmConfiguration.createJbpmContext(); graphSession = jbpmContext.getGraphSession(); processDefinition = graphSession.findLatestProcessDefinition("trip"); processInstance = new ProcessInstance(processDefinition); // other tests ContextInstance ci = processInstance.getContextInstance(); Map vars = ci.getVariables(); Token token = processInstance.getRootToken(); Map maps = processInstance.getTaskMgmtInstance().getSwimlaneInstances();
-
6. Re: Swimlane, groups and their fields
salaboy21 Oct 3, 2008 8:18 AM (in response to provajbpm)Ok, now i think i can see the problem.
You are not working with persistence? (a Database for storing the process information?) -
7. Re: Swimlane, groups and their fields
provajbpm Oct 3, 2008 8:31 AM (in response to provajbpm)i'm working with HyperSqL default db for jbpm-suite.
this is my flow:<process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="trip"> <swimlane name="Clienti"> <assignment expression="group(Clienti)"></assignment> </swimlane> <swimlane name="TourOperator"> <assignment expression="group(TourOperator)"></assignment> </swimlane> <start-state name="richiesta pacchetto vacanza"> <task name="Richiesta domanda" swimlane="Clienti"> <controller> <variable name="data partenza" access="read,write,required" mapped-name="Data di partenza"></variable> </controller> </task> <transition name="richiesta verifica" to="verifica disponibilita"></transition> </start-state> <decision name="verifica disponibilita"> <handler class='com.sample.action.VerificaDisponibilita'> </handler> <transition name="verifica negativa" to="prenotazione terminata"></transition> <transition name="verifica positiva" to="invio pagamento"></transition> </decision> <fork name="invio pagamento"> <event type="node-enter"> <action name="controllo scelta pagamento" class="com.sample.action.VerificaTipoPagamento"></action> </event> <transition name="pagamento carta" to="carta di credito"></transition> <transition name="pagamento contanti" to="contanti"></transition> </fork> <state name="carta di credito"> <transition name="pagamento carta ok" to="pagamento ok"></transition> </state> <state name="contanti"> <transition name="pagamento contanti ok" to="pagamento ok"></transition> </state> <join name="pagamento ok"> <transition name="prenotazione eseguita" to="prenotazione ok"></transition> </join> <end-state name="prenotazione terminata"></end-state> <state name="prenotazione ok"> <transition name="termina flusso" to="prenotazione terminata"></transition> </state> </process-definition>
it is in italian language :) thanks. -
8. Re: Swimlane, groups and their fields
kukeltje Oct 3, 2008 11:21 AM (in response to provajbpm)MAKE A SMALL UNIT TEST PLEASE...... that demonstrates the problem... not code snippets process snippets, postting assumptions.... please.......