- When new Campaigns are Created in SFDC, Events emitted using SFDC PushTopic
- Activiti Cloud Connector (activiti-cloud-connector-sfdc-event-listener) listens to events and kicks off Campaign Approval Process (in activiti-runtime-bundle-campaign-management component) shown above
- Interaction with SFDC at various points (service tasks) of the process via another Activiti Cloud Connector (activiti-cloud-connector-sfdc-rest)
- If the Campaign is approved, the process will activate the Campaign in SFDC & set the status to In-Progress on Campaign Start Date, else Abort it!
README to be updated soon with complete instructions! If you can't wait, the key thing is to have a Salesforce Account (https://developer.salesforce.com/signup), populate the SFDC connection properties in kubernetes/application.yml and creation of a PushTopic
Open Developer Console -> Go to Debug > Execute Anonymous:
PushTopic pushTopic = new PushTopic();
pushTopic.Name = 'NewCampaignNotification';
pushTopic.Query = 'SELECT ActualCost,BudgetedCost,CampaignMemberRecordTypeId,CreatedDate,EndDate,ExpectedResponse,ExpectedRevenue,Id,IsActive,NumberOfContacts,StartDate,Status,Type FROM Campaign';
pushTopic.ApiVersion = 41.0;
pushTopic.NotifyForOperationCreate = true;
pushTopic.NotifyForOperationUpdate = false;
pushTopic.NotifyForOperationUndelete = false;
pushTopic.NotifyForOperationDelete = false;
insert pushTopic;
When you have all the micro-services running, your fancy Kubernetes dashboard will look like this!!
For more details on Activiti 7 & Activiti Cloud, check out activiti-7-developers-guide