0

我们的工作流将服务任务附加到盒子上,下面的模板应用于 bmpn:serviceTask,现在当我们使用将工作流部署到 ​​camunda 时https://engine-rest/deployment/create,我们能够运行该过程,但我们在事件选项卡上看到此错误,我们正在使用bpmn-js节点建模器库和创建工作流,我们在其中定义camunda:class,您可以在下面看到错误,知道如何解决这个 camunda 类问题吗?

我们只是想在流程开始时发送电子邮件通知?

camunda 的新手,任何帮助都将不胜感激。

模板.js

{
  "name": "Mail_Task_2",
  "id": "com.camunda.example.MailTask_2",
  "createdBy": "sh529u",
  "users": [],
  "groups": [],
  "properties": [
    {
      "binding": {
        "name": "camunda:class",
        "type": "property"
      },
      "editable": false,
      "value": "com.mycompany.MailTaskImpl",
      "type": "String",
      "label": "Implementation Type"
    },
    {
      "label": "Sender",
      "type": "String",
      "binding": {
        "type": "camunda:inputParameter",
        "name": "sender"
      },
      "constraints": {
        "notEmpty": true
      }
    },
    {
      "label": "Receivers",
      "type": "String",
      "binding": {
        "type": "camunda:inputParameter",
        "name": "receivers"
      },
      "constraints": {
        "notEmpty": true
      }
    },
    {
      "label": "Template",
      "description": "By the way, you can use freemarker templates here",
      "value": "Hello ${firstName}!",
      "type": "Text",
      "binding": {
        "type": "camunda:inputParameter",
        "name": "messageBody",
        "scriptFormat": "freemarker"
      },
      "constraints": {
        "notEmpty": true
      }
    },
    {
      "label": "Result Status",
      "description": "The process variable to which to assign the send result to",
      "type": "String",
      "value": "mailSendResult",
      "binding": {
        "type": "camunda:outputParameter",
        "source": "${ resultStatus }"
      }
    },
    {
      "label": "Send Async?",
      "type": "Boolean",
      "value": true,
      "binding": {
        "type": "property",
        "name": "camunda:asyncBefore"
      }
    }
  ],
  "appliesTo": [
    "bpmn:ServiceTask"
  ]
}

错误

org.camunda.bpm.engine.ProcessEngineException: ENGINE-09008 Exception while instantiating class 'com.mycompany.MailTaskImpl': ENGINE-09017 Cannot load class 'com.mycompany.MailTaskImpl': com.mycompany.MailTaskImpl
    at org.camunda.bpm.engine.impl.util.EngineUtilLogger.exceptionWhileInstantiatingClass(EngineUtilLogger.java:78)
4

0 回答 0