Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Corebox Events vs Workflow Custom Function
#1
Hi,

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

coreBOS Events, Links and Hooks

Rgds
Reply
#2
I added some additional text to the explanation on the wiki:

<!-- m --><a class="postlink" href="http://corebos.org/documentation/doku.php?id=en:devel:corebos_hooks&#explanation">http://corebos.org/documentation/doku.p ... 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.
Joe
TSolucio
Reply
#3
Hi !
Is it possible to create a "Send sms" workflow ?

thanks,
[color=#000080][b]Anil Purushothaman[/b][/color]
Reply
#4
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
Joe
TSolucio
Reply
#5
Hi,

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.

thanks,
[color=#000080][b]Anil Purushothaman[/b][/color]
Reply
#6
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]


Attached Files Image(s)
   
Joe
TSolucio
Reply
#7
Hi Joe !
Thanks you gave me a way out immediately !!

<!-- sSmile --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="Smile" title="Smile" /><!-- sSmile -->
[color=#000080][b]Anil Purushothaman[/b][/color]
Reply
#8
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/VTTaskManager.inc on line 78

what could be the reason?

thanks,
[color=#000080][b]Anil Purushothaman[/b][/color]
Reply
#9
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:

Code:
diff --git a/modules/com_vtiger_workflow/VTTaskManager.inc b/modules/com_vtiger_workflow/VTTaskManager.inc
index f6e4011..394e5a0 100644
--- a/modules/com_vtiger_workflow/VTTaskManager.inc
+++ b/modules/com_vtiger_workflow/VTTaskManager.inc
@@ -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.
Joe
TSolucio
Reply
#10
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 !
[color=#000080][b]Anil Purushothaman[/b][/color]
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)