[JBoss jBPM] - Invoke jBPM workflow from external app
by ashishc
Hi All,
I am trying to figure out how can I invoke a jBPM workflow from an external java application because as per my understanding someone has to invoke the start state and then the flow can pass through.
Here is the processdefinition.xml
<?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="http-demo-process">
|
| <swimlane name="initiator">
| <assignment actor-id="manager" />
| </swimlane>
| <start-state name="start-state1">
| <task swimlane="initiator" />
| <transition to="node1"></transition>
| </start-state>
| <node name="node1">
| <action class="com.sample.action.MessageActionHandler">
| <message>Sending Message</message>
| </action>
| <transition to="end-state1"></transition>
| </node>
| <end-state name="end-state1"></end-state>
| </process-definition>
If I deploy this code to jbpm-console i can login as a user and invoke this workflow, but instead what i want to do is write a separate java application (public static void main) from which I can invoke this workflow...
Any examples, sample code, links, docs etc will be very helpful...
Thanks
Ashish
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162976#4162976
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162976
17 years, 9 months
[Installation, Configuration & DEPLOYMENT] - EMail events by SMTPAppender
by indra_joy
Hi Gurus,
I am facing a problem in JBOSS 4.0.5GA in SMTPAppender issue. I want to send automatic email from JBOSS whenever required. In log4j I have also configured the same but it's not working.
For your ref
<!-- EMail events to an administrator -->
appender name="SMTP" class="org.apache.log4j.net.SMTPAppender">
errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
param name="Threshold" value="ERROR"/>
param name="To" value="indrajoy(a)gmail.com"/>
param name="From" value="nobody(a)gmail.com"/>
param name="Subject" value="JBoss Sever Errors"/>
param name="SMTPHost" value="gmail-smtp.l.google.com"/>
param name="BufferSize" value="10"/>
appender>
I am kind of stuck over here. Can you please help.
Apart from this do I need to do anything extra??
My root is
<!-- <appender-ref ref="CONSOLE"/> -->
<appender-ref ref="FILE"/>
<appender-ref ref="SMTP" />
Also I want to schedule this as emails shud be sent after 15/30/45mins etc.
Any help will be a real favor.
Thanks Indrajoy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162966#4162966
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162966
17 years, 9 months