Full Version: Corebox Events vs Workflow Custom Function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2

can someone explain the difference between the 2 event system and advantage using one or the other

coreBOS Events, Links and Hooks

I added some additional text to the explanation on the wiki:

<!-- m --><a class="postlink" href=""> ... xplanation</a><!-- m -->

As I say there, in the end, they are all the same and the only thing that decides which to use is what you need to acheive. Our ultimate goal is to not have to modify the base code in any way to get your customizations working. We have advanced a lot, and there is more to come.
Hi !
Is it possible to create a "Send sms" workflow ?

Yes, there is a custom workflow function for that and as far as I know that works. It probably will work with any module that has a phone field, but for sure you can get it working on accounts and contacts

I am able to create a "send sms" workflow on leads (on first save). Is it possible to create a series of "send sms" workflow that have consecutive dependency? For example -
sms1 goes on first time record is saved, sms2 goes 1 day after sms 1, sms3 goes 7 days after sms2..... likewise.

similarly, emails.

You don't have full control over this type of time based workflows (yet) but you can do what you are asking for to some extent using the "delay" option. The idea is that all workflows are created on the same "save" event, but some of them have their delay option set to an offset of varios days.

[attachment=0]<!-- ia0 -->WFDelayOffset.png<!-- ia0 -->[/attachment]
Hi Joe !
Thanks you gave me a way out immediately !!

<!-- sSmile --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="Smile" title="Smile" /><!-- sSmile -->
Hi Joe,

I am getting the following error when i try to run vtigercron.php directly from url -

Fatal error: Call to a member function getTimeFieldList() on a non-object in /home /corebos-master/modules/com_vtiger_workflow/ on line 78

what could be the reason?

This indicates an error in the task of one of your workflows. That is rather odd, maybe it was saved incorrectly or some parameter isn't validated correctly. You have to find out which task is causing the problem and then check the parameters.

Try adding this patch to your code:

diff --git a/modules/com_vtiger_workflow/ b/modules/com_vtiger_workflow/
index f6e4011..394e5a0 100644
--- a/modules/com_vtiger_workflow/
+++ b/modules/com_vtiger_workflow/
@@ -74,6 +74,7 @@
            $result = $adb->pquery("select task from com_vtiger_workflowtasks where task_id=?", array($taskId));
            $data = $adb->raw_query_result_rowdata($result, 0);
            $task = $data["task"];
+            var_dump($data);
            $task = $this->unserializeTask($task);
            $timeFieldList = $task->getTimeFieldList();
            foreach ($timeFieldList as $field) {

that should output on screen the information of the task that is breaking so you can fine tune it

let me know which task it is in case I can reproduce it here, we are probably missing some validation to not let some value be saved as you are passing it in.
Ok Joe, in the meantime, while I use that debugging code I must tell u that sms workflow is working perfectly with leads, but email workflow isnt. Emails are working fine with smtp outgoing server when i select a lead and send email. I have not configured mail manager. What i will do now is test the default email workflow that is on contacts module and see if emails are working, and this debugging code.

thanks for being there !
Pages: 1 2