Hi Jeff,<br><br>Thanks for your valuable time in resolving the questions yourself and helping the community members to understand the same.<br><br>We have added the link to your forum post from the Workflow module&#39;s document (References section)<br>
<br><div><span class="gmail_quote">On 4/19/10, <b class="gmail_sendername">Jeff Sherk Forerunner Ministries</b> &lt;<a href="mailto:jeff@forerunnertv.com">jeff@forerunnertv.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 4/13/2010 6:32 PM, Jeff Sherk Forerunner Ministries wrote:<br> &gt;&gt; The documentation on Workflows has some problems:<br> &gt;&gt; <a href="http://wiki.vtiger.com/index.php/vtiger510:Module_Workflow">http://wiki.vtiger.com/index.php/vtiger510:Module_Workflow</a><br>
 &gt;&gt;<br> &gt;&gt; Under Invoke Custom Function:<br> &gt;&gt; (1) The demo function contains the $entity in it ... is this a global<br> &gt;&gt; variable that is passed into the function or does it need to be defined<br>
 &gt;&gt; somewhere else first?<br> &gt;&gt;<br> &gt;&gt; (2) The doc says to put your file in module/Workflow/Demo.inc but there<br> &gt;&gt; is no Workflow folder. Does this folder need to be created, or can it go<br> &gt;&gt; in any folder as long as we give the correct path?<br>
 &gt;&gt;<br> &gt;&gt; (3) The line in that reads &quot;The method then needs to be registered, for<br> &gt;&gt; example if the method was defined in the file modules/demo/Demo.inc for ...&quot;<br> &gt;&gt; This is a different folder (module/demo/Demo.inc) than what is specified<br>
 &gt;&gt; in the code above and the code below... I am assuming that this is a Typo.<br> &gt;&gt;<br> &gt;&gt; (4) In this line:<br> &gt;&gt; $emm = new VTEntityMethodManager($adb);<br> &gt;&gt; Is $adb a global variable or does it need to be defined somewhere else<br>
 &gt;&gt; first??<br> &gt;&gt;<br> &gt;&gt; (5) In this line:<br> &gt;&gt; $emm-&gt;addEntityMethod(&quot;PurchaseOrder&quot;, &quot;method&quot;,<br> &gt;&gt; &quot;modules/Workflow/Demo.inc&quot;, &quot;demo&quot;);<br>
 &gt;&gt; What does &quot;PurchaseOrder&quot; get replaced with? Is the module name? Would<br> &gt;&gt; it be Contact or Contacts? What are all the possible module names that<br> &gt;&gt; can be used?<br> &gt;&gt; Also, what does &quot;method&quot; get changed to? Is it always &#39;method&#39;, or is<br>
 &gt;&gt; this the name that will appear in the list on the Task page?<br> &gt;&gt;<br> &gt;&gt; (6) And most importantly, where and how do you actually register the<br> &gt;&gt; method! It gives no indication of what file to put the code in or how to<br>
 &gt;&gt; register the method!<br> &gt;&gt;<br> &gt;&gt;<br> &gt;&gt; I will gladly create a better working example for docs and forum, but I<br> &gt;&gt; need answers to the above questions.<br> &gt;&gt; Thanks<br> &gt;&gt; _______________________________________________<br>
 &gt;&gt;<br> &gt;&gt;<br> &gt;&gt;<br> &gt; Ok, with much trial and error I think I figured it out. See here:<br> &gt; <a href="http://forums.vtiger.com/viewtopic.php?p=104978">http://forums.vtiger.com/viewtopic.php?p=104978</a><br>
 &gt;<br> &gt; Thanks<br> &gt; _______________________________________________<br> &gt;<br> &gt;<br> <br>Ok, I created an account on the vTiger Wiki, but it would not let me<br> edit the workflow page, so here is a link to the forum post I made that<br>
 answers all my questions with an example... maybe somebody could link to<br> it from the wiki or update the wiki?<br> <a href="http://forums.vtiger.com/viewtopic.php?p=105259">http://forums.vtiger.com/viewtopic.php?p=105259</a><br>
 <br>_______________________________________________<br> Reach hundreds of potential candidates - <a href="http://jobs.vtiger.com">http://jobs.vtiger.com</a><br> </blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>
Asha<br>vtiger Team