AnsweredAssumed Answered

Could not instantiate class

Question asked by sarra1 on Aug 9, 2013
Latest reply on Aug 13, 2013 by learner

Hi,
i'm working on the UelExpressionTestOrder example  and i got this problem"Could not instantiate class org.activiti.examples.bpmn.expression".when i deployed on activiti explorer
———-
<?xml version="1.0" encoding="UTF-8"?>
<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" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="Examples">
  <process id="uelExpressions" isExecutable="true">
    <startEvent id="theStart"></startEvent>
    <exclusiveGateway id="exclusiveGw" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow2" sourceRef="exclusiveGw" targetRef="standardService">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${order.price <= 250}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow3" sourceRef="exclusiveGw" targetRef="premiumService">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${order.isPremiumOrder()}]]></conditionExpression>
    </sequenceFlow>
    <userTask id="standardService" name="Standard service" activiti:assignee="kermit"></userTask>
    <sequenceFlow id="flow4" sourceRef="standardService" targetRef="end1"></sequenceFlow>
    <endEvent id="end1"></endEvent>
    <userTask id="premiumService" name="Premium service" activiti:assignee="kermit"></userTask>
    <sequenceFlow id="flow5" sourceRef="premiumService" targetRef="end2"></sequenceFlow>
    <endEvent id="end2"></endEvent>
    <sequenceFlow id="flow6" sourceRef="theStart" targetRef="exclusiveGw">
      <extensionElements>
        <activiti:executionListener event="create" class="org.activiti.examples.bpmn.expression.UelExpressionTestOrder"></activiti:executionListener>
      </extensionElements>
    </sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_uelExpressions">
    <bpmndi:BPMNPlane bpmnElement="uelExpressions" id="BPMNPlane_uelExpressions">
      <bpmndi:BPMNShape bpmnElement="exclusiveGw" id="BPMNShape_exclusiveGw">
        <omgdc:Bounds height="40.0" width="40.0" x="80.0" y="90.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="end2" id="BPMNShape_end2">
        <omgdc:Bounds height="35.0" width="35.0" x="320.0" y="15.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="end1" id="BPMNShape_end1">
        <omgdc:Bounds height="35.0" width="35.0" x="320.0" y="175.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="premiumService" id="BPMNShape_premiumService">
        <omgdc:Bounds height="60.0" width="100.0" x="170.0" y="0.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="standardService" id="BPMNShape_standardService">
        <omgdc:Bounds height="60.0" width="100.0" x="170.0" y="160.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="theStart" id="BPMNShape_theStart">
        <omgdc:Bounds height="35.0" width="35.0" x="0.0" y="95.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
        <omgdi:waypoint x="120.0" y="110.0"></omgdi:waypoint>
        <omgdi:waypoint x="132.0" y="110.0"></omgdi:waypoint>
        <omgdi:waypoint x="132.0" y="30.0"></omgdi:waypoint>
        <omgdi:waypoint x="170.0" y="30.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
        <omgdi:waypoint x="120.0" y="110.0"></omgdi:waypoint>
        <omgdi:waypoint x="132.0" y="110.0"></omgdi:waypoint>
        <omgdi:waypoint x="132.0" y="190.0"></omgdi:waypoint>
        <omgdi:waypoint x="170.0" y="190.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5">
        <omgdi:waypoint x="270.0" y="30.0"></omgdi:waypoint>
        <omgdi:waypoint x="282.0" y="30.0"></omgdi:waypoint>
        <omgdi:waypoint x="282.0" y="30.0"></omgdi:waypoint>
        <omgdi:waypoint x="320.0" y="32.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4">
        <omgdi:waypoint x="270.0" y="190.0"></omgdi:waypoint>
        <omgdi:waypoint x="320.0" y="192.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6">
        <omgdi:waypoint x="35.0" y="112.0"></omgdi:waypoint>
        <omgdi:waypoint x="80.0" y="110.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>

———-
Thanks in advance,

Outcomes