[JBoss jBPM] - How to get TaskInstance in a ActionHandler
by freak182
Hello,
How can i get TaskInstance in a executioncontext..here is the scenario:
| ..........................
|
| <task-node name="approver A">
|
| <timer duedate="1 minute" name="timertest" transition="to approver B">
| <action class="com.ccti.workflow.WorkflowTimer"></action>
| </timer>
|
| <transition to="approver B" name="to approver B"></transition>
| </task-node>
|
and here the WorkflowTimer code:
| public class WorkflowTimer implements ActionHandler {
|
| private static final Log log = LogFactory.getLog(WorkflowTimer.class);
|
| /* (non-Javadoc)
| * @see org.jbpm.graph.def.ActionHandler#execute(org.jbpm.graph.exe.ExecutionContext)
| */
| public void execute(ExecutionContext context) throws Exception {
|
| TaskIntance instance = context. ?
|
|
| }
| }
|
I already tried context.getTaskInstance() but it give me NPE.
Thanks a lot.
Cheers.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234916#4234916
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234916
16 years, 10 months
[Installation, Configuration & DEPLOYMENT] - Re: Please Help Deployment the weirdest error I ever had in
by jaikiran
You are running the "all" server configuration which means a clustered server. From the server.log that you posted the number of members in this cluster is just 1 (this single system):
| 2009-05-28 16:43:12,159 INFO [org.jboss.ha.framework.interfaces.HAPartition.DefaultPartition] Number of cluster members: 1
| 2009-05-28 16:43:12,159 INFO [org.jboss.ha.framework.interfaces.HAPartition.DefaultPartition] Other members: 0
|
So i guess we can rule out the war being picked up from some other system in the cluster.
In the "all" configuration there's also a %JBOSS_HOME%/server/all/farm folder which is scanned for deployments. Make sure the old war is not in that folder.
Finally, the server.log that you posted seems to be set at INFO level. If you set the threshold for the FILE appender in %JBOSS_HOME%/server/all/conf/log4j.xml you will be able to find the exact location of the war file that is being picked up. Like this:
| 2009-06-03 15:17:17,681 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] warURL: file:/xxx/zzz/yyy/jboss-4.2.3.GA/server/default/deploy/jboss-web.deployer/ROOT.war/
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234913#4234913
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234913
16 years, 10 months