This will then make a trigger to email or SMS to the specific user or email/number.
Code: Select all
var workersActiveJobs = dispatch.getActiveJobs(session.user.id); if (workersActiveJobs.length != 0) { for (var i = 0; i < workersActiveJobs.length; i++) { if (trackPoint.position.distance(workersActiveJobs<i>.position) < =50) { return true; } } } else { return false; }
Expressions -
Only option I have is Event Rules
Inside of here I don't have an option for Script Expressions/Editor
Explain where I would put this?
http://gpsgate.com/blogComment/apps_and_auto_completion_of_jobs