Error publishing Mule task

Hi,

I am not sure where I’m failing publishing a Process that has a Mule task, for the flowable notify a third system something happen to a process.
From the flowable-modeler I only see a:

“Invalid deploy result code: HTTP 1.1/500 Interval Server Error”

This is the xml task definition. I guess something is missing, but I can not figure out what.

<serviceTask id="externalCall" name="External notification" flowable:type="mule">
  <extensionElements>
    <flowable:field name="endpointUrl">
      <flowable:string><![CDATA[http://somedomain.api.com]]></flowable:string>
    </flowable:field>
    <flowable:field name="payloadExpression">
      <flowable:expression><![CDATA[${param1}]]></flowable:expression>
    </flowable:field>
  </extensionElements>
</serviceTask>
<sequenceFlow id="sid-92F721BD-45A1-41B4-A257-D43DB4C28E0F" sourceRef="startEvent1" targetRef="externalCall"></sequenceFlow>

thanks,

Hi,

The flowable-mule module is not part of the JARS in the lib folder of flowable-task application by default. Did you add the flowable-mule module?

Best regards,

Tijs

Hi tijs,

Thanks for point it out, I have not noticed that.
After adding the flowable-mule.jar to libs foler I’m still getting a HTTP/1.1 500 Error.
This is the log I can get:

0:28:55,579 [http-nio-8080-exec-7] ERROR org.flowable.admin.app.rest.client.DeploymentsClientResource - Error deploying file
org.flowable.admin.service.engine.exception.FlowableServiceException: An error occurred while calling Flowable: HTTP/1.1 500
at org.flowable.admin.service.engine.FlowableClientService.executeRequest(FlowableClientService.java:145)
at org.flowable.admin.service.engine.FlowableClientService.executeRequest(FlowableClientService.java:111)
at org.flowable.admin.service.engine.DeploymentService.uploadDeployment(DeploymentService.java:128)
at org.flowable.admin.app.rest.client.DeploymentsClientResource.handleFileUpload(DeploymentsClientResource.java:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)

Thanks a lot,

Could you check the logging in the Flowable Task app?
Does that provide more information about the reason why it is failing?

Best regards,

Tijs

Hi,

The logs says there is a “outgoing sequence flow condition without a condition …”.
I have try to set a EndEvent as a default flow with no sucess.

08:45:34,804 [http-nio-8080-exec-9] WARN org.flowable.engine.impl.bpmn.parser.BpmnParse - Following warnings encountered during process validation: [Validation set: ‘activiti-executable-process’ | Problem: ‘flowable-exclusive-gateway-seq-flow-without-conditions’] : Exclusive gateway has at least one outgoing sequence flow without a condition (which isn’t the default one) - [Extra info : processDefinitionId = process | processDefinitionName = List | | id = sid-72B84C38-B129-4926-BF3E-A4112B07939D | | activityName = Update Detected ? | ] ( line: 57, column: 94)
[Validation set: ‘activiti-executable-process’ | Problem: ‘flowable-exclusive-gateway-seq-flow-without-conditions’] : Exclusive gateway has at least one outgoing sequence flow without a condition (which isn’t the default one) - [Extra info : processDefinitionId = process | processDefinitionName = List | | id = sid-7ACDDFF8-D6DD-44DD-BD9F-202F98623448 | ] ( line: 59, column: 69)
[Validation set: ‘activiti-executable-process’ | Problem: ‘flowable-exclusive-gateway-seq-flow-without-conditions’] : Exclusive gateway has at least one outgoing sequence flow without a condition (which isn’t the default one) - [Extra info : processDefinitionId = process | processDefinitionName = List | | id = sid-35085EDF-29E9-4E8B-8FA2-9499BDE52D74 | | activityName = Any Update ? | ] ( line: 78, column: 89)
[Validation set: ‘activiti-executable-process’ | Problem: ‘flowable-exclusive-gateway-seq-flow-without-conditions’] : Exclusive gateway has at least one outgoing sequence flow without a condition (which isn’t the default one) - [Extra info : processDefinitionId = process | processDefinitionName = List | | id = sid-E237C13E-0D86-4872-88E1-161DAE0A0F02 | | activityName = R&C ? | ] ( line: 81, column: 4)
[Validation set: ‘activiti-executable-process’ | Problem: ‘flowable-exclusive-gateway-seq-flow-without-conditions’] : Exclusive gateway has at least one outgoing sequence flow without a condition (which isn’t the default one) - [Extra info : processDefinitionId = process | processDefinitionName = List | | id = sid-67034D9F-F22D-47D5-B68F-8A61E7BC3DF0 | | activityName = R&C? | ] ( line: 88, column: 85)
[Validation set: ‘activiti-executable-process’ | Problem: ‘flowable-exclusive-gateway-seq-flow-without-conditions’] : Exclusive gateway has at least one outgoing sequence flow without a condition (which isn’t the default one) - [Extra info : processDefinitionId = process | processDefinitionName = List | | id = sid-EBE5E667-6FE3-40FB-9581-5297F4F73F64 | | activityName = Profile Expected ? | ] ( line: 90, column: 95)

08:45:34,845 [http-nio-8080-exec-6] ERROR org.flowable.app.service.editor.AppDefinitionPublishService - Invalid deploy result code: HTTP/1.1 500 Internal Server Error

Thanks a lot,