An event-based automation system for facilitating metadata-based automations in a collaborative cloud-based environment, comprising a non-transitory machine readable storage medium having instructions embodied thereon, the instructions when executed cause a processor to perform processing, the event-based automation system comprising:
- an event dispatcher configured to:
- monitor for changes in metadata occurring with respect to work items within the collaborative cloud-based environment;
- and generate an event in response to detecting a change in a metadata key-value pair associated with a particular work item in the collaborative cloud-based environment, the change in the metadata key-value pair resulting from an action performed on the particular shared work item by a collaborator of the collaborative cloud-based environment:
- a rule manager system communicatively coupled to the event dispatcher, the rule manager system configured to:
- automatically translate the metadata event generated by the event dispatcher into a job request based on a pre-defined metadata rule that matches a key of the metadata key-value pair associated with particular work item;
- a job manager system communicatively coupled to the rule manager system, the job manager system configured to:
- generate a job based on the job request from the rule manager system, the generated job including a set of parameters describing work to be executed in the collaborative cloud-based environment with respect to the particular work item;
- and distribute the generated job into a particular job queue for processing, the particular job queue one of a plurality of job queues;
- and one or more worker machines in a distributed computing cluster, the one or more worker machines configured to:
- receive the job generated by the job manager out of the particular job queue;
- and process the job.