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's document (References section)<br>
<br><div><span class="gmail_quote">On 4/19/10, <b class="gmail_sendername">Jeff Sherk Forerunner Ministries</b> <<a href="mailto:jeff@forerunnertv.com">jeff@forerunnertv.com</a>> 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> >> The documentation on Workflows has some problems:<br> >> <a href="http://wiki.vtiger.com/index.php/vtiger510:Module_Workflow">http://wiki.vtiger.com/index.php/vtiger510:Module_Workflow</a><br>
>><br> >> Under Invoke Custom Function:<br> >> (1) The demo function contains the $entity in it ... is this a global<br> >> variable that is passed into the function or does it need to be defined<br>
>> somewhere else first?<br> >><br> >> (2) The doc says to put your file in module/Workflow/Demo.inc but there<br> >> is no Workflow folder. Does this folder need to be created, or can it go<br> >> in any folder as long as we give the correct path?<br>
>><br> >> (3) The line in that reads "The method then needs to be registered, for<br> >> example if the method was defined in the file modules/demo/Demo.inc for ..."<br> >> This is a different folder (module/demo/Demo.inc) than what is specified<br>
>> in the code above and the code below... I am assuming that this is a Typo.<br> >><br> >> (4) In this line:<br> >> $emm = new VTEntityMethodManager($adb);<br> >> Is $adb a global variable or does it need to be defined somewhere else<br>
>> first??<br> >><br> >> (5) In this line:<br> >> $emm->addEntityMethod("PurchaseOrder", "method",<br> >> "modules/Workflow/Demo.inc", "demo");<br>
>> What does "PurchaseOrder" get replaced with? Is the module name? Would<br> >> it be Contact or Contacts? What are all the possible module names that<br> >> can be used?<br> >> Also, what does "method" get changed to? Is it always 'method', or is<br>
>> this the name that will appear in the list on the Task page?<br> >><br> >> (6) And most importantly, where and how do you actually register the<br> >> method! It gives no indication of what file to put the code in or how to<br>
>> register the method!<br> >><br> >><br> >> I will gladly create a better working example for docs and forum, but I<br> >> need answers to the above questions.<br> >> Thanks<br> >> _______________________________________________<br>
>><br> >><br> >><br> > Ok, with much trial and error I think I figured it out. See here:<br> > <a href="http://forums.vtiger.com/viewtopic.php?p=104978">http://forums.vtiger.com/viewtopic.php?p=104978</a><br>
><br> > Thanks<br> > _______________________________________________<br> ><br> ><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