CoreBOSBB
Corebox Events vs Workflow Custom Function - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Open (https://discussions.corebos.org/forumdisplay.php?fid=20)
+--- Forum: Open Discussions (https://discussions.corebos.org/forumdisplay.php?fid=10)
+--- Thread: Corebox Events vs Workflow Custom Function (/showthread.php?tid=89)

Pages: 1 2


Re: Corebox Events vs Workflow Custom Function - joebordes - 03-02-2015

Mail Manager is for incoming emails, it has nothing to do with outgoing emails.

Keep us informed.


Re: Corebox Events vs Workflow Custom Function - anilp78 - 03-03-2015

Hi Joe,
Let me share the situation de-facto -
1. Workflow for "send sms" works perfectly, sends sms to me very moment a new lead is added. So there is nothing wrong with cronjob here i suppose.
2. workflow for "send email" works when i execute vtigercron.php manually from url, i have not yet witnessed automated execution yet.

after using debug code you gave, i deleted all the workflows i had created as they were appearing in the dump screen, and created new ones.

Just waiting for the last part of the issue to get cleared - send email automatically (workflow cron is set to 15 mins).

thanks,


Re: Corebox Events vs Workflow Custom Function - anilp78 - 03-03-2015

Hi Joe, I have identified the problem, it is with time triggered send email workflow. Manual trigger works fine for send email workflow. Can you tell me how to correct it?

thanks,


Re: Corebox Events vs Workflow Custom Function - joebordes - 03-03-2015

You have to configure your server to call the vtigercron.php script every 5-6 minutes

How you accomplish this varies depending on your server. Since you say that you can launch it manually, I understand that you can access the command line and are executing something like:

Code:
php vtigercron.php

if that is the case, go to the coreBOS main directory and do this:

Code:
whereis php

that will return something like /usr/bin/php

Code:
pwd

that will give you something like /var/www/corebos

Code:
cd /etc/cron.d
echo */5 * * * * root cd /var/www/corebos; /usr/bin/php vtigercron.php" > corebos

make sure the file has the same permissions as the others


Re: Corebox Events vs Workflow Custom Function - anilp78 - 03-06-2015

But how is the send sms workflow working automatically? doesnt tht mean vtigercron.php is executing through cronjob already?

thanks,


Re: Corebox Events vs Workflow Custom Function - joebordes - 03-06-2015

No, the only task that need cron workflow is emails, all the others are executed immediatly, they do not use the cron system.