提交 911e7f01 编写于 作者: J jbarrez

Added qa script for testing failing job

上级 b7fd3def
......@@ -4,4 +4,3 @@ jdbc.url=@jdbc.url@
jdbc.username=@jdbc.username@
jdbc.password=@jdbc.password@
db.schema.strategy=check-version
job.executor.auto.activate=off
......@@ -10,7 +10,7 @@
<startEvent id="theStart" />
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="firstLineSupport" />
<userTask id="firstLineSupport" name="First line support" />
<sequenceFlow id="flow2" sourceRef="firstLineSupport" targetRef="normalEnd" />
......
......@@ -187,7 +187,6 @@ Then run test.demo.setup to make it get placed inside your tomcat server." unles
</copy>
</target>
<target name="open.html.page">
<fail message="property url has to be specified to use this target" unless="url" />
<exec executable="${macos.browser}" os="Mac OS X">
......@@ -201,4 +200,27 @@ Then run test.demo.setup to make it get placed inside your tomcat server." unles
</exec>
</target>
<!-- Assumes that a demo setup is successfully running (in /distro/target/etc) -->
<target name="deploy.ui.qa.processes">
<delete dir="ui/build" />
<mkdir dir="ui/build"/>
<zip destfile="ui/build/ui-qa-processes.bar">
<fileset dir="ui/processes">
<include name="verifyJobExceptionStacktrace.bpmn20.xml"/>
</fileset>
</zip>
<taskdef name="deploy-bar" classname="org.activiti.engine.impl.ant.DeployBarTask">
<classpath>
<fileset dir="${activiti.home}/setup/build/">
<include name="activiti-cfg.jar"/>
</fileset>
<fileset dir="${activiti.home}/examples/activiti-engine-examples/libs-runtime/" />
<fileset dir="${activiti.home}/examples/activiti-engine-examples/libs-test/" />
</classpath>
</taskdef>
<deploy-bar file="ui/build/ui-qa-processes.bar" />
<delete dir="ui/build" />
</target>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:activiti="http://activiti.org/bpmn-extensions"
targetNamespace="http://www.activiti.org/bpmn2.0">
<process id="exceptionInJobExecution" name="Timer (1 minute) with exception">
<startEvent id="theStart" />
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="firstLineSupport" />
<userTask id="firstLineSupport" name="First line support" activiti:assignee="kermit"/>
<sequenceFlow id="flow2" sourceRef="firstLineSupport" targetRef="normalEnd" />
<endEvent id="normalEnd" />
<boundaryEvent id="escalationTimer" cancelActivity="true" attachedToRef="firstLineSupport">
<timerEventDefinition>
<timeDuration>PT1M</timeDuration>
</timerEventDefinition>
</boundaryEvent>
<sequenceFlow id="flow3" sourceRef="escalationTimer" targetRef="theScriptTask" />
<scriptTask id="theScriptTask" name="Execute script" scriptFormat="groovy">
<script>
// Throw an exception in script task
throw new RuntimeException("This is an exception thrown from scriptTask")
</script>
</scriptTask>
<sequenceFlow id="flow4" sourceRef="theScriptTask" targetRef="escalatedEnd" />
<endEvent id="escalatedEnd" />
</process>
</definitions>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册