protected internal virtual string DeploymentWithBuilder(IDeploymentBuilder builder) { DeploymentId = builder.Deploy().Id; DeploymentIds.Add(DeploymentId); return(DeploymentId); }
public virtual void testParseExternalTaskWithoutTopic() { IDeploymentBuilder deploymentBuilder = repositoryService.CreateDeployment().AddClasspathResource("resources/bpmn/external/ExternalTaskParseTest.TestParseExternalTaskWithoutTopic.bpmn20.xml"); try { deploymentBuilder.Deploy(); Assert.Fail("exception expected"); } catch (ProcessEngineException e) { AssertTextPresent("External tasks must specify a 'topic' attribute in the camunda namespace", e.Message); } }