Friday, July 8, 2016
1 change · master
Resolved issues and error corrections
Lead automation campaign workitems now remain pending when timing or conditions are not yet met, so scheduled processing can retry them later. This prevents campaign records from getting cancelled, deleted, or stuck before they are ready to move forward.
Original PR description
**Description of the issue/feature this PR addresses:** This change corrects the way conditions on workitems are addressed when running lead automation campaigns **Current behavior before PR:**…
**Description of the issue/feature this PR addresses:** This change corrects the way conditions on workitems are addressed when running lead automation campaigns **Current behavior before PR:** Currently, when you create an activity, a workitem is generated at first run when the segment is synchronized. If you select "keep_if_condition_not_met" and that the time trigger and condition are not met, the status of the work-item is set to "cancelled". if you don’t select "don’t delete workitem", the workitem is not generated. When the workitems are synchronized later by the scheduled action, this action will look for all items in "todo" status and try to run them. As our workitems are in status "cancelled" or are deleted, nothing will happen **Desired behavior after PR is merged:** We have removed the option "keep_if_condition_not_met" in the activity. We have also changed the behaviour so that, if the time trigger and conditions are not met, the workitem is set with status "todo". This way, when the "process workitems" scheduled action is run, the system will find the workitems with "todo" status and run them again. If the conditions are met, they will be processed and the system will go to the next activity. This way, as long as the campaign is running, the records in our segment will continue to progress along our workitems and not be stuck anymore