/** * Deploys the given workflow to the broker. Note that the filename must have the "bpmn" file * extension, e.g. "resource.bpmn". * * @param workflow workflow to deploy * @param filename resource name, e.g. "workflow.bpmn" */ public void deployWorkflow(BpmnModelInstance workflow, String filename) { clientRule.getClient().newDeployCommand().addWorkflowModel(workflow, filename).send().join(); }
/** * Deploys the given workflow to the broker. Note that the filename must have the "bpmn" file * extension, e.g. "resource.bpmn". * * @param workflow workflow to deploy * @param filename resource name, e.g. "workflow.bpmn" */ public void deployWorkflow(BpmnModelInstance workflow, String filename) { clientRule.getClient().newDeployCommand().addWorkflowModel(workflow, filename).send().join(); }