{"id":36,"date":"2014-07-23T10:03:00","date_gmt":"2014-07-23T10:03:00","guid":{"rendered":"https:\/\/scgindia.in\/lhotsetechnologies\/dev\/2014\/07\/23\/cq5-workflow-tutorial-part-i\/"},"modified":"2020-01-17T14:02:50","modified_gmt":"2020-01-17T14:02:50","slug":"cq5-workflow-tutorial-part-i","status":"publish","type":"post","link":"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/","title":{"rendered":"CQ5 Workflow Tutorial Part &#8211; I"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">From this post I am starting a series of tutorial that will cover CQ5 workflow in details. This is a introductory post that will explain different terminology used in workflow.&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #660000;\"><b>Agenda in a Look<\/b><\/span><\/div>\n<div style=\"text-align: justify;\">\n<ol>\n<li><span style=\"color: #274e13;\"><span style=\"font-family: Times, Times New Roman, serif;\">Introduction to Workflow.<\/span><\/span><\/li>\n<li><span style=\"color: #274e13; font-family: Times, Times New Roman, serif;\">Most used Workflow Terminology using interactive&nbsp;questionnaire.<\/span><\/li>\n<li><span style=\"color: #274e13;\"><span style=\"font-family: Times, Times New Roman, serif;\">Creating &nbsp;a Workflow Model.<\/span><\/span><\/li>\n<li><span style=\"color: #274e13;\"><span style=\"font-family: Times, Times New Roman, serif;\">Node Structure of Workflow Model in crxde lite.<\/span><\/span><\/li>\n<li><span style=\"color: #274e13;\"><span style=\"font-family: Times, Times New Roman, serif;\">Starting Workflow.<\/span><\/span><\/li>\n<li><span style=\"color: #274e13;\"><span style=\"font-family: Times, Times New Roman, serif;\">Node Structure of Workflow Model instance in crxde lite.<\/span><\/span><\/li>\n<li><span style=\"color: #274e13;\"><span style=\"font-family: Times, Times New Roman, serif;\">Participation Step in brief<\/span><\/span><\/li>\n<li><span style=\"color: #274e13;\"><span style=\"font-family: Times, Times New Roman, serif;\">Completing Participant Step from Sidekick as well as from inbox.<\/span><\/span><\/li>\n<\/ol>\n<\/div>\n<div style=\"text-align: justify;\"><b><span style=\"color: #660000;\">Workflow in General Terms<\/span><\/b><br \/>\n<span style=\"color: #274e13;\"><i>&#8220;Workflow is a well defined series of steps to produce a desired out, usually include many participants in between these steps and processes in an organization. &#8220;<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><b><span style=\"color: #660000;\">Workflow?<\/span><\/b><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">Workflows enable you to automate AEM activities. It consist of a series of automated steps also called process steps that are executed in a specific order. When you want to use workflow in CQ5 then &nbsp;first, you have to create workflow models.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><b><span style=\"color: #660000;\">Workflow model?<\/span><\/b><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">workflow models can be think as an architecture of a workflow that shows you how your workflow steps are arranged and how they connect with each other. Workflow model is made up of workflow step nodes and workflow transitions nodes. Workflow Model must have a start node and end node.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><b><span style=\"color: #660000;\">Workflow Step Nodes?<\/span><\/b><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">workflow nodes are created for each steps you create in a workflow model for ex. if you created three process steps in your model then it will create three different nodes for all of these steps. These nodes are called workflow nodes.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><b><span style=\"color: #660000;\">Workflow Transitions?<\/span><\/b><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">Workflow transitions are also nodes created in repository, they indicate how these process steps are related or you may think as these transition node define the path how these workflow process step will be executed. It can also be think as a link between two consecutive process steps.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><b><span style=\"color: #660000;\">Automated &nbsp;Step?<\/span><\/b><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">These are the actual place where all the processing is done, there logic can be written in ECMA script or in process steps using Java. AEM itself provide some Out Of the Box processes. These step may be interactive or non interactive i.e. these step can get input from author or they can only do processing without any intervention of author. Due to all of these factor these steps are called automated steps.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><b><span style=\"color: #660000;\">Workflow Payload?<\/span><\/b><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">Workflow payload can be think of a resource on which a workflow instance is activated. i.e. payload could be any resource (node or page) or a collection of resources.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">Above theoretical discussion is only for making your concept clear, but now I will show you where all of these node exist and how to play with them. I am also thinking that it&#8217;s enough theory for getting started with workflow so Let&#8217;s play with workflows-<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b>Go to AEM welcome Screen -&gt; Select workflow tab<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">you will see workflow dashboard as shown below &#8211;&nbsp;<\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a style=\"clear: left; float: left; margin-bottom: 1em; margin-left: 1em;\" href=\"http:\/\/4.bp.blogspot.com\/-lrn5o4EGI9Q\/U89E_mLb4GI\/AAAAAAAAAsc\/Q4HX7FEpqfo\/s1600\/workflow_1.jpg\"><span style=\"clear: left; color: #274e13; float: left; margin-bottom: 1em; margin-right: 1em;\"><img decoding=\"async\" src=\"http:\/\/4.bp.blogspot.com\/-lrn5o4EGI9Q\/U89E_mLb4GI\/AAAAAAAAAsc\/Q4HX7FEpqfo\/s1600\/workflow_1.jpg\"><\/span><\/a><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><\/span><span style=\"color: #274e13;\">here you will see four tabs<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><br \/>\n<\/span><span style=\"color: #274e13;\"><b>1). Model<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">List of all workflow models available in AEM.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b>2). Instances<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">List of all active instances of workflow model i.e. when you start a workflow then it&#8217;s instance will be displayed in instances tab with many properties, all properties will be covered in this series of tutorial.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b>3). Archive<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">When a workflow instance has been finished successfully or terminated then it&#8217;s information is visible in this tab.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b>4). Launcher<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">This is a tab to define a condition for starting a workflow automatically i.e. when a condition is satisfied a workflow will be started automatically. I will discuss it in details just leave it for this introductory post.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b>5). Failure<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">This tab show all the workflow instances failed i.e. any error occur while executing a process step of workflow instance. This tab give you the facility to fix the error and resume the workflow. I will cover it in details later, just leave it for now.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">Our first step is to create a workflow named as blog so at your <b><i>Model tab click on New button<\/i><\/b> and fill details as&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b><i>Name = &nbsp;blog<\/i><\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b><i>Title = blog<\/i><\/b><\/span><br \/>\n<span style=\"color: #274e13;\"><i><br \/>\n<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">you will see your model at the end of list in model tab, just <b>double click<\/b> on it you will see a screen as &#8211;<\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a style=\"clear: left; float: left; margin-bottom: 1em; margin-left: 1em;\" href=\"http:\/\/4.bp.blogspot.com\/-yYm-lX7GNjg\/U89J-eCUyZI\/AAAAAAAAAss\/YQ7rF0jB7i0\/s1600\/workflow_2.jpg\"><span style=\"clear: left; color: #274e13; float: left; margin-bottom: 1em; margin-right: 1em;\"><img decoding=\"async\" src=\"http:\/\/4.bp.blogspot.com\/-yYm-lX7GNjg\/U89J-eCUyZI\/AAAAAAAAAss\/YQ7rF0jB7i0\/s1600\/workflow_2.jpg\"><\/span><\/a><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">This the basic architecture of a workflow model consist of three nodes as show above<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a style=\"clear: left; float: left; margin-bottom: 1em; margin-left: 1em;\" href=\"http:\/\/2.bp.blogspot.com\/-ivneT1wkG6U\/U89MKFMRzVI\/AAAAAAAAAs4\/eDMMeNNBauY\/s1600\/workflow_3.png\"><span style=\"clear: left; color: #274e13; float: left; margin-bottom: 1em; margin-right: 1em;\"><img decoding=\"async\" src=\"http:\/\/2.bp.blogspot.com\/-ivneT1wkG6U\/U89MKFMRzVI\/AAAAAAAAAs4\/eDMMeNNBauY\/s1600\/workflow_3.png\"><\/span><\/a><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><i>Just go to CRXDE Lite&nbsp;<\/i><\/span><br \/>\n<span style=\"color: #274e13;\"><i>Go to<b>&nbsp;<\/b><\/i><\/span><br \/>\n<b style=\"color: #274e13;\">\/etc\/workflow\/models\/blogModels directory<i>.<\/i><\/b><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">This is the place where all models has been saved.&nbsp;<\/span><span style=\"color: #274e13;\">Just expend your model i.e. blog you will see all nodes as-<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">This <b>flow Node<\/b> having only one sub node named as&nbsp;<\/span><span style=\"color: #274e13;\"><b>participant<\/b>. All the nodes under this directory represents the intermediate steps nodes between Start and End step.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">As I &nbsp;told you a model is made up of process step nodes and transition node, here they are<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">i.e. <b>node0, node1, node2<\/b> these are the nodes corresponding to all the steps in your workflow model <b>Start, Participant, End steps<\/b>&nbsp; node respectively.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">Each of these <b>node<\/b> have a subnode <b>metaData<\/b> which will hold the information, which is available only when the workflow execution will reach to that particular step. i.e.<\/span><br \/>\n<span style=\"color: #274e13;\"><b><i>Participant metaData information is available only at participant step not before this step and also not after this step<\/i><\/b>.&nbsp;<\/span><br \/>\n<span style=\"color: #274e13;\">This information has been removed when workflow execution passes from this step.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b>Nodes under transitions node<\/b> show how workflow steps are connected i.e. it shows that workflow will run through following path &#8211;<\/span><br \/>\n<span style=\"color: #274e13;\"><b>node0-&gt;node1-&gt;node2<\/b>&nbsp;<\/span><br \/>\n<span style=\"color: #274e13;\"><br \/>\n<\/span><\/div>\n<div style=\"text-align: justify;\"><b><span style=\"color: #660000;\">Note-<\/span><span style=\"color: #274e13; font-style: italic;\"> this is only model representation when you execute a workflow then it&#8217;s instance will be created under \/etc\/workflow\/instance directory &amp; all the real work has been down using that model instance node.&nbsp;<\/span><\/b><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">your workflow model uses participant step, similarly there are lot of Out of the Box process step I will explain almost all steps in my coming tutorial of this series till then just leave them.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">As participant step is present in it&#8217;s default model structure so I briefly explain it in this tutorial.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><b><span style=\"color: #660000;\">Participant Step<\/span><\/b><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">Through this step you can introduce a manual intervention of a user or group i.e. it will restrict further execution of workflow steps till user or group doesn&#8217;t permit to proceed. I will explain this step in details in my coming post till then just set the properties as I am showing.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b>Go<\/b> to your <b>workflow model tab<\/b> and <b>double click on blog model<\/b>.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">On this screen<b> double click on participant step<\/b> you will see a screen just like-<\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a style=\"clear: left; float: left; margin-bottom: 1em; margin-left: 1em;\" href=\"http:\/\/3.bp.blogspot.com\/-iJGd_24v0T0\/U89aSys3mpI\/AAAAAAAAAtI\/iXRMadCb7iQ\/s1600\/workflow_4.jpg\"><span style=\"clear: left; color: #274e13; float: left; margin-bottom: 1em; margin-right: 1em;\"><img decoding=\"async\" src=\"http:\/\/3.bp.blogspot.com\/-iJGd_24v0T0\/U89aSys3mpI\/AAAAAAAAAtI\/iXRMadCb7iQ\/s1600\/workflow_4.jpg\"><\/span><\/a><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">Just <\/span><b style=\"color: #274e13;\">set title<\/b><span style=\"color: #274e13;\"> as <\/span><b style=\"color: #274e13;\">&#8220;blog&nbsp;participant step&#8221;<\/b><span style=\"color: #274e13;\"> , add some <\/span><b style=\"color: #274e13;\">description<\/b> <b style=\"color: #274e13;\">&#8220;working with participant step.&#8221;<\/b><span style=\"color: #274e13;\"> in <\/span><b style=\"color: #274e13;\">second tab<\/b><span style=\"color: #274e13;\"> i.e. <\/span><b style=\"color: #274e13;\">user\/group<\/b><span style=\"color: #274e13;\"> tab you will see a search bar just click on it and select a admin user as show below-<\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a style=\"clear: left; float: left; margin-bottom: 1em; margin-left: 1em;\" href=\"http:\/\/3.bp.blogspot.com\/-Ek69wTWkZKQ\/U89a_7C1pdI\/AAAAAAAAAtQ\/qqZxZpdA-F8\/s1600\/workflow_5.jpg\"><span style=\"color: #274e13;\"><img decoding=\"async\" src=\"http:\/\/3.bp.blogspot.com\/-Ek69wTWkZKQ\/U89a_7C1pdI\/AAAAAAAAAtQ\/qqZxZpdA-F8\/s1600\/workflow_5.jpg\"><\/span><\/a><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b>Click&nbsp;OK&nbsp;<\/b>button. Again <b>Click<\/b> on&nbsp;<b>OK<\/b>&nbsp;button of your <b>main dialog<\/b>.&nbsp;<\/span><span style=\"color: #274e13;\">Then <\/span><b style=\"color: #274e13;\">Save<\/b><span style=\"color: #274e13;\"> your <\/span><b style=\"color: #274e13;\">workflow model<\/b><span style=\"color: #274e13;\">,<\/span><b style=\"color: #274e13;\"><i> Save button is present at top left corner of the screen.<\/i><\/b><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b>open<\/b> any content page in my case I have opened <b>\/content\/geometrixx\/en.html<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">you will get a Sitekick on this page go to workflow tag your screen looks like &#8211;<\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a style=\"clear: left; float: left; margin-bottom: 1em; margin-left: 1em;\" href=\"http:\/\/1.bp.blogspot.com\/-VLVfwmdxWbM\/U89cST07uVI\/AAAAAAAAAtc\/W4k8tscJrEw\/s1600\/workflow_6.jpg\"><span style=\"clear: left; color: #274e13; float: left; margin-bottom: 1em; margin-right: 1em;\"><img decoding=\"async\" src=\"http:\/\/1.bp.blogspot.com\/-VLVfwmdxWbM\/U89cST07uVI\/AAAAAAAAAtc\/W4k8tscJrEw\/s1600\/workflow_6.jpg\"><\/span><\/a><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b>select blog workflow<\/b> and <b>click on start workflow <\/b>button. As you logged in as admin so it will show you <b>three menu in your Sitekick<\/b> as show below.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">before doing further processing just have a look what will this workflow instance do in crxde. S<\/span><span style=\"color: #274e13;\">o <b>go to <\/b>your <b>crxde lite<\/b> and explore <b>\/etc\/workflow\/instance<\/b> directory.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">here you will see a new node structure created as shown below &#8211;&nbsp;<\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a style=\"clear: left; float: left; margin-bottom: 1em; margin-left: 1em;\" href=\"http:\/\/4.bp.blogspot.com\/-E4EvD__1Rtw\/U89hCUoEPnI\/AAAAAAAAAuM\/F0hJNQNbCYM\/s1600\/workflow_9.png\"><span style=\"clear: left; color: #274e13; float: left; margin-bottom: 1em; margin-right: 1em;\"><img decoding=\"async\" src=\"http:\/\/4.bp.blogspot.com\/-E4EvD__1Rtw\/U89hCUoEPnI\/AAAAAAAAAuM\/F0hJNQNbCYM\/s1600\/workflow_9.png\"><\/span><\/a><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">this node represent the instance of your workflow model. it provide different information related to your workflow steps. <b><i>Payload node defines the payload of this workflow instance.<\/i><\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b><i>History node maintains all the data related to all the steps completed.<\/i><\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b><i>WorkItems represent the current workflow step node data.<\/i><\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><i>There are two metaData node one inside data and second is metadata under your model node.<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><b><span style=\"color: #660000;\"><br \/>\n<\/span><\/b><b><span style=\"color: #660000;\">difference between these two is &#8211;<\/span><\/b><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b>model\/data\/metaData<\/b> represent the information available at all the steps present in this workflow. while&nbsp;<\/span><span style=\"color: #274e13;\"><b>model\/metaData<\/b> represent the information available to particular workflow step. <b>model\/metaData<\/b> node copies data from <b>model\/data\/metaData<\/b> node.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">Now start further processing &#8211;<\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a style=\"clear: left; float: left; margin-bottom: 1em; margin-left: 1em;\" href=\"http:\/\/2.bp.blogspot.com\/-r29UDTFcrBg\/U89dFx8z1BI\/AAAAAAAAAtk\/Fwpsw-ymIx4\/s1600\/workflow_7.jpg\"><span style=\"clear: left; color: #274e13; float: left; margin-bottom: 1em; margin-right: 1em;\"><img decoding=\"async\" src=\"http:\/\/2.bp.blogspot.com\/-r29UDTFcrBg\/U89dFx8z1BI\/AAAAAAAAAtk\/Fwpsw-ymIx4\/s1600\/workflow_7.jpg\"><\/span><\/a><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b><i>click on complete button<\/i><\/b> you will get a dialog showing your next step as End and comment text area. Just <b>add some comment<\/b> in this text area and click on submit button. your workflow has been completed.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b><i>if you select a user other then admin then these option are not visible here. That is information will be send to that particular user inbox.&nbsp;<\/i><\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">as You can complete this workflow from here as well as you can complete this workflow from <b>admin inbox<\/b>.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">for this just again start your workflow &amp; don&#8217;t complete from here.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b>Now go to CQ welcome screen and select inbox tab.<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">you will see a work item in this inbox with different options &amp; your screen looks like this-<\/span><\/div>\n<div style=\"text-align: justify;\"><a style=\"clear: left; display: inline !important; margin-bottom: 1em; margin-left: 1em; text-align: center;\" href=\"http:\/\/3.bp.blogspot.com\/-p1Nikfp3yU0\/U89egW8siWI\/AAAAAAAAAtw\/y9gydzYukAE\/s1600\/workflow_8.jpg\"><span style=\"clear: left; color: #274e13; display: inline !important; margin-bottom: 1em; margin-right: 1em;\"><img decoding=\"async\" src=\"http:\/\/3.bp.blogspot.com\/-p1Nikfp3yU0\/U89egW8siWI\/AAAAAAAAAtw\/y9gydzYukAE\/s1600\/workflow_8.jpg\"><\/span><\/a><\/div>\n<div style=\"clear: both; text-align: center;\">&nbsp;<\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">Just complete this step using complete button. T<\/span><span style=\"color: #274e13;\">his is done for starting with workflow basics.&nbsp;<\/span><br \/>\n<span style=\"color: #274e13;\"><br \/>\n<\/span><span style=\"color: #274e13;\"><b><i>Your comments\/suggestions are welcome for improving my knowledge as well as my writing skills.&nbsp;<\/i><\/b><\/span><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p><strong>Happy Coding<\/strong><br \/>\n<strong>Namah Shivay<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>From this post I am starting a series of tutorial that will cover CQ5 workflow in details. This is a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,33,129,82,126,124],"tags":[],"class_list":["post-36","post","type-post","status-publish","format-standard","hentry","category-aem","category-cq","category-cq-workflow","category-cq5","category-cq5-workflow","category-workflow"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>CQ5 Workflow Tutorial Part - I - AEM Blog | Lhotse Technologies<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CQ5 Workflow Tutorial Part - I - AEM Blog | Lhotse Technologies\" \/>\n<meta property=\"og:description\" content=\"From this post I am starting a series of tutorial that will cover CQ5 workflow in details. This is a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/\" \/>\n<meta property=\"og:site_name\" content=\"AEM Blog | Lhotse Technologies\" \/>\n<meta property=\"article:published_time\" content=\"2014-07-23T10:03:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-01-17T14:02:50+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/4.bp.blogspot.com\/-lrn5o4EGI9Q\/U89E_mLb4GI\/AAAAAAAAAsc\/Q4HX7FEpqfo\/s1600\/workflow_1.jpg\" \/>\n<meta name=\"author\" content=\"Team Lhotse\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Team Lhotse\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/\"},\"author\":{\"name\":\"Team Lhotse\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/fd7bee89b050d7c7195fc75b681b053d\"},\"headline\":\"CQ5 Workflow Tutorial Part &#8211; I\",\"datePublished\":\"2014-07-23T10:03:00+00:00\",\"dateModified\":\"2020-01-17T14:02:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/\"},\"wordCount\":1580,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/4.bp.blogspot.com\/-lrn5o4EGI9Q\/U89E_mLb4GI\/AAAAAAAAAsc\/Q4HX7FEpqfo\/s1600\/workflow_1.jpg\",\"articleSection\":[\"AEM\",\"CQ\",\"Cq workflow\",\"CQ5\",\"CQ5 workflow\",\"workflow\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/\",\"name\":\"CQ5 Workflow Tutorial Part - I - AEM Blog | Lhotse Technologies\",\"isPartOf\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/4.bp.blogspot.com\/-lrn5o4EGI9Q\/U89E_mLb4GI\/AAAAAAAAAsc\/Q4HX7FEpqfo\/s1600\/workflow_1.jpg\",\"datePublished\":\"2014-07-23T10:03:00+00:00\",\"dateModified\":\"2020-01-17T14:02:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/#primaryimage\",\"url\":\"http:\/\/4.bp.blogspot.com\/-lrn5o4EGI9Q\/U89E_mLb4GI\/AAAAAAAAAsc\/Q4HX7FEpqfo\/s1600\/workflow_1.jpg\",\"contentUrl\":\"http:\/\/4.bp.blogspot.com\/-lrn5o4EGI9Q\/U89E_mLb4GI\/AAAAAAAAAsc\/Q4HX7FEpqfo\/s1600\/workflow_1.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/lhotsetechnologies.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CQ5 Workflow Tutorial Part &#8211; I\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#website\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/\",\"name\":\"AEM Blog | Lhotse Technologies\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/lhotsetechnologies.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#organization\",\"name\":\"AEM Blog | Lhotse Technologies\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2019\/07\/lhotse-logo.png\",\"contentUrl\":\"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2019\/07\/lhotse-logo.png\",\"width\":539,\"height\":172,\"caption\":\"AEM Blog | Lhotse Technologies\"},\"image\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/fd7bee89b050d7c7195fc75b681b053d\",\"name\":\"Team Lhotse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Team Lhotse\"},\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/author\/team-lhotse\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CQ5 Workflow Tutorial Part - I - AEM Blog | Lhotse Technologies","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/","og_locale":"en_US","og_type":"article","og_title":"CQ5 Workflow Tutorial Part - I - AEM Blog | Lhotse Technologies","og_description":"From this post I am starting a series of tutorial that will cover CQ5 workflow in details. This is a [&hellip;]","og_url":"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/","og_site_name":"AEM Blog | Lhotse Technologies","article_published_time":"2014-07-23T10:03:00+00:00","article_modified_time":"2020-01-17T14:02:50+00:00","og_image":[{"url":"http:\/\/4.bp.blogspot.com\/-lrn5o4EGI9Q\/U89E_mLb4GI\/AAAAAAAAAsc\/Q4HX7FEpqfo\/s1600\/workflow_1.jpg","type":"","width":"","height":""}],"author":"Team Lhotse","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Team Lhotse","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/#article","isPartOf":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/"},"author":{"name":"Team Lhotse","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/fd7bee89b050d7c7195fc75b681b053d"},"headline":"CQ5 Workflow Tutorial Part &#8211; I","datePublished":"2014-07-23T10:03:00+00:00","dateModified":"2020-01-17T14:02:50+00:00","mainEntityOfPage":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/"},"wordCount":1580,"commentCount":0,"publisher":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#organization"},"image":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/#primaryimage"},"thumbnailUrl":"http:\/\/4.bp.blogspot.com\/-lrn5o4EGI9Q\/U89E_mLb4GI\/AAAAAAAAAsc\/Q4HX7FEpqfo\/s1600\/workflow_1.jpg","articleSection":["AEM","CQ","Cq workflow","CQ5","CQ5 workflow","workflow"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/","url":"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/","name":"CQ5 Workflow Tutorial Part - I - AEM Blog | Lhotse Technologies","isPartOf":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/#primaryimage"},"image":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/#primaryimage"},"thumbnailUrl":"http:\/\/4.bp.blogspot.com\/-lrn5o4EGI9Q\/U89E_mLb4GI\/AAAAAAAAAsc\/Q4HX7FEpqfo\/s1600\/workflow_1.jpg","datePublished":"2014-07-23T10:03:00+00:00","dateModified":"2020-01-17T14:02:50+00:00","breadcrumb":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/#primaryimage","url":"http:\/\/4.bp.blogspot.com\/-lrn5o4EGI9Q\/U89E_mLb4GI\/AAAAAAAAAsc\/Q4HX7FEpqfo\/s1600\/workflow_1.jpg","contentUrl":"http:\/\/4.bp.blogspot.com\/-lrn5o4EGI9Q\/U89E_mLb4GI\/AAAAAAAAAsc\/Q4HX7FEpqfo\/s1600\/workflow_1.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/lhotsetechnologies.com\/blog\/cq5-workflow-tutorial-part-i\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/lhotsetechnologies.com\/blog\/"},{"@type":"ListItem","position":2,"name":"CQ5 Workflow Tutorial Part &#8211; I"}]},{"@type":"WebSite","@id":"https:\/\/lhotsetechnologies.com\/blog\/#website","url":"https:\/\/lhotsetechnologies.com\/blog\/","name":"AEM Blog | Lhotse Technologies","description":"","publisher":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/lhotsetechnologies.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/lhotsetechnologies.com\/blog\/#organization","name":"AEM Blog | Lhotse Technologies","url":"https:\/\/lhotsetechnologies.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2019\/07\/lhotse-logo.png","contentUrl":"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2019\/07\/lhotse-logo.png","width":539,"height":172,"caption":"AEM Blog | Lhotse Technologies"},"image":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/fd7bee89b050d7c7195fc75b681b053d","name":"Team Lhotse","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Team Lhotse"},"url":"https:\/\/lhotsetechnologies.com\/blog\/author\/team-lhotse\/"}]}},"_links":{"self":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=36"}],"version-history":[{"count":4,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/36\/revisions"}],"predecessor-version":[{"id":574,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/36\/revisions\/574"}],"wp:attachment":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}