perhaps my question was rather restrictive.
i will rephrase my question.
Q. essentially how does one test a ActionHandler?
I looked at the src and the only tests i found seem to tests for the Action events.
I was looking for something like
| ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(
| "<process-definition>" +
| " <node name='n'>" +
| " <event type='node-enter'>" +
| " <action name='a' class='MyHandler'/>" +
| " </event>" +
| " </node>" +
| "</process-definition>");
|
| MyHandler MyHandlerInstance = new MyHandler();
|
| ...mock up
|
| processDefinition.setAction("a", MyHandlerInstance),
|
| ...do test
|
|
How do u guys test your ActionHandler without doing a full integration test?
any help is most appreciated.
-lp
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4243406#4243406
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4243406
HI,
I am working with JBpm-3.2.6.SP1. I want to know if the websale process should be visible automatically when I install jbpm and login to the jbpm-console ?
I cannot see it though..I see it only after I import it and deploy it in eclipse ..
After deploying, when i click evaluate on the Create New Websale order task, i get the following errors :
Error completing task: An exception of type "org.jbpm.JbpmException" was thrown. The message is: ejb timer entity lookup problem
Closing the database context failed: An exception of type org.hibernate.exception.DataException was thrown, with the message: could not insert: [org.jbpm.graph.log.ActionLog]
Can anyone help me with this ?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4243391#4243391
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4243391