Joget Workflow v5 Training Slides - Module 6 - Using your first Process Tool

  • View
    212

  • Download
    1

Embed Size (px)

Text of Joget Workflow v5 Training Slides - Module 6 - Using your first Process Tool

Joget Workflow v4 - Training

Joget Workflow v5

Using your first Process Tool

http://facebook.com/jogetworkflowhttp://twitter.com/jogetworkflow

Last Revised on May 2016Joget Inc Internal Use Only

All Rights Reserved Joget Inc

1

Joget Inc Internal Use OnlyJoget Inc Internal Use Only

PrerequisitesAble to design a Process Flow.Understand the differences between activity and tool.Joget Inc Internal Use Only

All Rights Reserved Joget Inc

ContentIntroduction to Process ToolUsing Email Tool in ProcessUsing Process Tool plugin in Post Form Submission ProcessingJoget Inc Internal Use Only

All Rights Reserved Joget Inc

Chapter 1Introduction to Process ToolJoget Inc Internal Use Only

All Rights Reserved Joget Inc

Plugin TypesJoget Inc Internal Use Only

All Rights Reserved Joget Inc

What does it mean?Being a plugin, it means that it is possible to add/extend the default functionalities of what we already have.Joget Inc Internal Use Only

All Rights Reserved Joget Inc

Locating available Process Tool pluginsSystem Settings -> Manage Plugins -> Process ToolJoget Inc Internal Use Only

All Rights Reserved Joget Inc

What is a Process Tool?Process Tool plugin is used as part of the process flow mapped to the Tool entity in a process flow.Joget Inc Internal Use Only

All Rights Reserved Joget Inc

Form Post Submission ProcessingNewly introduced in v5, a Process Tool plugin is also known as the Form Post Submission Processing plugin.A Process Tool plugin can be attached to individual form and gets invoked upon form submission.Joget Inc Internal Use Only

All Rights Reserved Joget Inc

Form Post Submission ProcessingIn Forms properties, Post Form Submission Processing settings can be found.Joget Inc Internal Use Only

All Rights Reserved Joget Inc

Chapter ReviewWe have learnt to:Understand Process Tool Plugin and being part of the Joget Workflow ecosystem.Able to list down available Process Tool Plugins in the system.Joget Inc Internal Use Only

All Rights Reserved Joget Inc

Chapter 2Using the Email Tool in ProcessJoget Inc Internal Use Only

All Rights Reserved Joget Inc

Email Tool - Process Tool PluginEmail Tool is one of many Process Tool plugins available.Process Tool plugins are extensible through Joget Workflows Plugin architecture.Joget Inc Internal Use Only

All Rights Reserved Joget Inc

Note about the MappingActivity is mapped to Form

Tool is mapped to Process ToolJoget Inc Internal Use Only

All Rights Reserved Joget Inc

Adding the Email ToolOn Map Tools to Plugins, click on Add/Edit Plugin for Send Rejected Email Notification tool.

Joget Inc Internal Use Only

All Rights Reserved Joget Inc

Configuring the Email ToolChoose Email Tool from the available Process Tools.Joget Inc Internal Use Only

All Rights Reserved Joget Inc

Configuring the Email ToolSet up your mail server information.Click Next to set up the email content.Joget Inc Internal Use Only

All Rights Reserved Joget Inc

Configuring the Email ToolSet up the email content.Joget Inc Internal Use Only

All Rights Reserved Joget Inc

Good to knowTry the SMTP settings with an email client (e.g Outlook, Thunderbird) before using it with Email Tool.Make sure that your firewall allows outgoing email messages to be sent from Java.exeJoget Inc Internal Use Only

All Rights Reserved Joget Inc

ExerciseTest out the Email Tool functionality by going through the Workflow Process.Make sure that the recipients email is defined.Take note of the server log if your email fails to reach.

INFO org.joget.apps.app.lib.EmailTool$1 - EmailTool: Sending email from=no-reply@example.com, to=cc=, subject=Your leave has been rejectedERROR org.joget.apps.app.lib.EmailTool$1 - org.apache.commons.mail.EmailException: At least one receiver address requiredorg.apache.commons.mail.EmailException: At least one receiver address required at org.apache.commons.mail.Email.buildMimeMessage(Email.java:1148) at org.apache.commons.mail.MultiPartEmail.buildMimeMessage(MultiPartEmail.java:254) at org.apache.commons.mail.HtmlEmail.buildMimeMessage(HtmlEmail.java:513) at org.apache.commons.mail.Email.send(Email.java:1266) at org.joget.apps.app.lib.EmailTool$1.run(EmailTool.java:196) at java.lang.Thread.run(Thread.java:619)Joget Inc Internal Use Only

All Rights Reserved Joget Inc

Tip: Common Mail ServersGooglemail - GmailServer:Authentication:Port:SMTP Server (Outgoing Messages)smtp.gmail.comSSL465smtp.gmail.comStartTLS587POP3 Server (Incoming Messages)pop.gmail.comSSL995Please make sure, that POP3 access is enabled in the account settings.Login to your account and enable POP3.

Outlook.comServer:Authentication:Port:SMTP Server (Outgoing Messages)smtp.live.comStartTLS587POP3 Server (Incoming Messages)pop3.live.comSSL995

Yahoo MailServer:Authentication:Port:SMTP Server (Outgoing Messages)smtp.mail.yahoo.comSSL465POP3 Server (Incoming Messages)pop.mail.yahoo.comSSL995

Source: http://www.arclab.com/en/amlc/list-of-smtp-and-pop3-servers-mailserver-list.htmlJoget Inc Internal Use Only

All Rights Reserved Joget Inc

Chapter ReviewWe have learnt to:Map a Process Tool to a Process Tool PluginConfigure Email Tool PluginJoget Inc Internal Use Only

All Rights Reserved Joget Inc

Chapter 3Using Process Tool in Post Form Submission ProcessingJoget Inc Internal Use Only

All Rights Reserved Joget Inc

Identify the form

Joget Inc Internal Use Only

All Rights Reserved Joget Inc

Add Process Tool to the FormIn the form identified, open the form in the Form Builder.Go to the properties, configure the Post Form Submission Processing settings.Joget Inc Internal Use Only

All Rights Reserved Joget Inc

What Processing Tool to choose?You may choose any Process Tool plugin of your preference or re-use the Email Tool that you have learned earlier.Joget Inc Internal Use Only

All Rights Reserved Joget Inc

DiscussionIf theres a Process Tool mapped to a Form (Submit Leave) and theres a Tool (Tool 3) to be followed after in the process flow, what will be the execution sequence?Joget Inc Internal Use Only

All Rights Reserved Joget Inc

DiscussionWith the ability to add a Process Tool to individual form, there seems to be a continuation/flow by having the form itself. Whats the significance of having it versus having the Process Tool in a Workflow Process?Joget Inc Internal Use Only

All Rights Reserved Joget Inc

Module ReviewUnderstand Process Tool Plugin and being part of the Joget ecosystem.Able to list down available Process Tool Plugins in the system.Map a Process Tool to a Process Tool PluginMap a Form to a Process Tool PluginConfigure Email Tool Plugin

Joget Inc Internal Use Only

All Rights Reserved Joget Inc

Stay Connected with Joget Workflowhttp://www.joget.org http://community.joget.org http://twitter.com/jogetworkflow http://facebook.com/jogetworkflow http://youtube.com/jogetworkflow http://slideshare.net/joget

Joget Inc Internal Use Only

All Rights Reserved Joget Inc