[Vtigercrm-developers] VT6 New Workflow function: removeEntityMethod()

Prasad prasad at vtiger.com
Fri Nov 22 12:48:08 GMT 2013


Alan,

removeEntityMethod - would remove the listing of method for further use in
the workflow tasks. However, the method (function) used by other workflow
tasks would continue to work - as long as the file exists on disk.

More: http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7820#comment:2

Regards,
Prasad


*Connect with us on: *Twitter <http://twitter.com/vtigercrm> *I*
Facebook<http://www.facebook.com/pages/vtiger/226866697333578?sk=wall>
 *I* Blog <https://blogs.vtiger.com/>* I*
Wiki<http://wiki.vtiger.com/index.php/Main_Page>
 *I *Forums  <https://discussions.vtiger.com>*I*
Website<https://www.vtiger.com/>


On Thu, Nov 21, 2013 at 6:12 PM, Prasad <prasad at vtiger.com> wrote:

> Noted: http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7820.
>
> Thanks,
> Prasad
>
> *Connect with us on: *Twitter <http://twitter.com/vtigercrm> *I* Facebook<http://www.facebook.com/pages/vtiger/226866697333578?sk=wall>
>  *I* Blog <https://blogs.vtiger.com/>* I* Wiki<http://wiki.vtiger.com/index.php/Main_Page>
>  *I *Forums  <https://discussions.vtiger.com>*I* Website<https://www.vtiger.com/>
>
>
> On Thu, Nov 21, 2013 at 5:20 PM, Alan Lord <alanslists at gmail.com> wrote:
>
>> Hi Guys,
>>
>> I just noticed that there is now a removeEntityMethod function in
>> VTEntityMethodManager.inc which is a good thing IMHO :-)
>>
>> What I am curious about though is this function is very sparse and will,
>> if I'm right, leave "floating" workflow tasks that originally called this
>> entitymethod that's just been deleted...
>>
>>          /**
>>>          * Function to remove workflowtasks entity method
>>>          * @param <String> Module Name
>>>          * @param <String> Entity Method Name.
>>>          */
>>>         function removeEntityMethod($moduleName, $methodName){
>>>                 $adb = $this->adb;
>>>                 $adb->pquery("DELETE FROM com_vtiger_workflowtasks_entitymethod
>>> WHERE module_name = ? and method_name= ?", array($moduleName, $methodName));
>>>         }
>>>
>>
>> Should this function not also find any workflowtasks that used this
>> method and remove them too?
>>
>> Cheers
>>
>> Al
>>
>>
>> _______________________________________________
>> http://www.vtiger.com/
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20131122/ba600c72/attachment.html>


More information about the vtigercrm-developers mailing list