[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jboss-user
Subject:    [jboss-user] [jBPM] - Re: Help with email node please.
From:       Thomas Setiabudi <do-not-reply () jboss ! com>
Date:       2012-11-30 23:32:27
Message-ID: 2-778004-3-95519-1353620782313-2-779422-3-112016-1354318342964.jivesbs.jivemailuser () https://community ! jboss ! org
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created the \
discussion

"Re: Help with email node please."

To view the discussion, visit: https://community.jboss.org/message/779422#779422

--------------------------------------------------------------
Hi Luis Victor,

My explanation here was based on this guide  \
http://docs.jboss.org/jbpm/v5.4/userguide/ch.console.html#d0e4679 \
http://docs.jboss.org/jbpm/v5.4/userguide/ch.console.html#d0e4679


If you are using *jbpm5.4.final full installer* and you use *JBPM-Console* to start \
your process, here is what you can do:

*A. If you have NOT run the "ant install demo"*

1. Go to \jbpm-installer\conf\META-INF\ folder, and open CustomWorkItemHandlers.conf

2. The default CustomWorkItemHandlers.conf should looks like this:


[
   Log: new org.jbpm.process.instance.impl.demo.SystemOutWorkItemHandler(),
]



3. You need to add a definition for "Email" service task Work Item Handler, so the \
file now should looks like this:

[
   Log: new org.jbpm.process.instance.impl.demo.SystemOutWorkItemHandler(),
   Email: new org.jbpm.process.workitem.email.EmailWorkItemHandler(host, port, \
username, password), ]



4. Make sure you have specified the correct host, port, username, and password there.

5. save the file, and then run the "ant install.demo"

6. The Email node that comes with JBPM5.4 full installer should works properly now 


*B. If you HAVE run the "ant install demo"*

1. Go to \jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments

2. Open the jbpm-gwt-console-server.war and look into \
\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments\jbpm-gwt-console-server.war\WEB-INF\classes\META-INF\


3. Inside there, you should be able to find CustomWorkItemHandlers.conf

4. by default, the CustomWorkItemHandlers.conf content should be:

[
   Log: new org.jbpm.process.instance.impl.demo.SystemOutWorkItemHandler(),
]



5. You need to add a definition for "Email" service task Work Item Handler, so the \
file now should looks like this:

[
   Log: new org.jbpm.process.instance.impl.demo.SystemOutWorkItemHandler(),
   Email: new org.jbpm.process.workitem.email.EmailWorkItemHandler(host, port, \
username, password), ]



6. Make sure you have specified the correct host, port, username, and password there.

7. Save the file and double check to make sure that now \
\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments\jbpm-gwt-console-server.war\WEB-INF\classes\META-INF\CustomWorkItemHandlers.conf
  has been updated to your latest modification.

8. that should be all, just start the server again either by using "ant start.jboss" \
or "ant start.demo" and the Email node that comes with jbpm5.4 full installer should \
works.


Hope this helps.


Regards,
Thomas Setiabudi
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/779422#779422]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]



[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; \
margin: 0; padding: 20px;">

<div>
	<table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: \
1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; \
-webkit-border-radius: 6px;">  <tbody>
			<tr>

				<td>

					<table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" \
style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: \
6px; -webkit-border-radius: 6px;">  <tbody>
							<tr>
								<td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px \
solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; \
-moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; \
                -webkit-border-top-left-radius: 5px;">
									<h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; \
                margin: 0; display: block !important;">
									<!-- To have a header image/logo replace the name below with your img tag \
                -->
									<!-- Email clients will render the images when the message is read so any \
                image -->
									<!-- must be made available on a public server, so that all recipients can \
                load the image. -->
									<a href="https://community.jboss.org/index.jspa" style="text-decoration: \
none; color: #E1E1E1">JBoss Community</a></h1>  </td>

							</tr>
							<tr>
								<td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; \
color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; \
-moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; \
-webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: \
17px; font-weight: normal;">  Re: Help with email node please.
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/thomas.setiabudi">Thomas \
Setiabudi</a> in <i>jBPM</i> - <a \
href="https://community.jboss.org/message/779422#779422">View the full discussion</a> \
</span> <hr style="margin: 20px 0; border: none; background-color: #dadada; height: \
1px;">

<div class="jive-rendered-content"><p>Hi Luis Victor,</p><p style="min-height: 8pt; \
height: 8pt; padding: 0px;">&#160;</p><p><span>My explanation here was based on this \
guide </span><a class="jive-link-external-small" \
href="http://docs.jboss.org/jbpm/v5.4/userguide/ch.console.html#d0e4679" \
target="_blank">http://docs.jboss.org/jbpm/v5.4/userguide/ch.console.html#d0e4679</a></p><p \
style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: \
8pt; height: 8pt; padding: 0px;">&#160;</p><p>If you are using <strong>jbpm5.4.final \
full installer</strong> and you use <strong>JBPM-Console</strong> to start your \
process, here is what you can do:</p><p style="min-height: 8pt; height: 8pt; padding: \
0px;">&#160;</p><p><span style="font-size: 12pt;"><strong>A. If you have NOT run the \
"ant install demo"</strong></span></p><p style="min-height: 8pt; height: 8pt; \
padding: 0px;">&#160;</p><p>1. Go to \jbpm-installer\conf\META-INF\ folder, and open \
CustomWorkItemHandlers.conf</p><p style="min-height: 8pt; height: 8pt; padding: \
0px;">&#160;</p><p>2. The default CustomWorkItemHandlers.conf should looks like \
this:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p \
style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre \
class="jive-pre"><code class="jive-code jive-xml">[ &#160; <span \
class="jive-xml-quote">Log</span>: new \
org.jbpm.process.instance.impl.demo.SystemOutWorkItemHandler(), ]

</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>3. \
You need to add a definition for "Email" service task Work Item Handler, so the file \
now should looks like this:</p><p style="min-height: 8pt; height: 8pt; padding: \
0px;">&#160;</p><pre class="jive-pre"><code class="jive-code jive-xml">[ &#160; <span \
class="jive-xml-quote">Log</span>: new \
org.jbpm.process.instance.impl.demo.SystemOutWorkItemHandler(), &#160; <span \
class="jive-xml-quote">Email</span>: new \
org.jbpm.process.workitem.email.EmailWorkItemHandler(<span \
class="jive-xml-quote">host</span>, <span class="jive-xml-quote">port</span>, <span \
class="jive-xml-quote">username</span>, <span \
class="jive-xml-quote">password</span>), ]

</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>4. \
Make sure you have specified the correct host, port, username, and password \
there.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>5. save \
the file, and then run the "ant install.demo"</p><p style="min-height: 8pt; height: \
8pt; padding: 0px;">&#160;</p><p>6. The Email node that comes with JBPM5.4 full \
installer should works properly now </p><p style="min-height: 8pt; height: 8pt; \
padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: \
0px;">&#160;</p><p><strong style="font-size: 16px;">B. If you HAVE run the "ant \
install demo"</strong></p><p style="min-height: 8pt; height: 8pt; padding: \
0px;">&#160;</p><p>1. Go to \
\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments</p><p style="min-height: \
8pt; height: 8pt; padding: 0px;">&#160;</p><p>2. Open the jbpm-gwt-console-server.war \
and look into \jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments\jbpm-gwt-console-server.war\WEB-INF\classes\META-INF\</p><p \
style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>3. Inside there, you \
should be able to find CustomWorkItemHandlers.conf</p><p style="min-height: 8pt; \
height: 8pt; padding: 0px;">&#160;</p><p>4. by default, the \
CustomWorkItemHandlers.conf content should be:</p><p style="min-height: 8pt; height: \
8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code \
jive-xml">[ &#160; <span class="jive-xml-quote">Log</span>: new \
org.jbpm.process.instance.impl.demo.SystemOutWorkItemHandler(), ]

</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>5. \
You need to add a definition for "Email" service task Work Item Handler, so the file \
now should looks like this:</p><p style="min-height: 8pt; height: 8pt; padding: \
0px;">&#160;</p><pre class="jive-pre"><code class="jive-code jive-xml">[ &#160; <span \
class="jive-xml-quote">Log</span>: new \
org.jbpm.process.instance.impl.demo.SystemOutWorkItemHandler(), &#160; <span \
class="jive-xml-quote">Email</span>: new \
org.jbpm.process.workitem.email.EmailWorkItemHandler(<span \
class="jive-xml-quote">host</span>, <span class="jive-xml-quote">port</span>, <span \
class="jive-xml-quote">username</span>, <span \
class="jive-xml-quote">password</span>), ]

</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>6. \
Make sure you have specified the correct host, port, username, and password \
there.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>7. Save \
the file and double check to make sure that now \
\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments\jbpm-gwt-console-server.wa \
r\WEB-INF\classes\META-INF\CustomWorkItemHandlers.conf</p><p>&#160;&#160;&#160;&#160; \
has been updated to your latest modification.</p><p style="min-height: 8pt; height: \
8pt; padding: 0px;">&#160;</p><p>8. that should be all, just start the server again \
either by using "ant start.jboss" or "ant start.demo" and the Email node that comes \
with jbpm5.4 full installer should works.</p><p style="min-height: 8pt; height: 8pt; \
padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: \
0px;">&#160;</p><p>Hope this helps.</p><p style="min-height: 8pt; height: 8pt; \
padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: \
0px;">&#160;</p><p>Regards,</p><p>Thomas Setiabudi</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a \
href="https://community.jboss.org/message/779422#779422">going to Community</a></p>  \
<p style="margin: 0;">Start a new discussion in jBPM at <a \
href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
 </div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>



_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic