Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False error on lint <bpmn:serviceTask> and <bpmn:callActivity> #66

Open
VDmdm opened this issue Nov 25, 2022 · 1 comment
Open

False error on lint <bpmn:serviceTask> and <bpmn:callActivity> #66

VDmdm opened this issue Nov 25, 2022 · 1 comment
Labels
backlog Queued in backlog bug Something isn't working spring cleaning Could be cleaned up one day

Comments

@VDmdm
Copy link

VDmdm commented Nov 25, 2022

Hi! I try to use youre plugin with bpmnlint, for validate my bpmn xml files.
I run "npm install [email protected]"
I am exporting xml from camunda modeler desktop, writing for 8.0.0.
My .bpmnlintrc file:

{
  "extends": [
    "bpmnlint:recommended",
    "plugin:camunda-compat/camunda-cloud-8-0"
  ],
  "rules": {
    "label-required": "off"
  }
}

After i run: bpmnlint file_name.bpmn, i get:

Activity_0xo3d6b error Element of type bpmn:ServiceTask must have one extension element of type zeebe:TaskDefinition calculate action [product action calculator]
Activity_0vdvlk5 error Element of type bpmn:ServiceTask must have one extension element of type zeebe:TaskDefinition calculate action [product action calculator]
Activity_0oq172q error Element of type bpmn:ServiceTask must have one extension element of type zeebe:TaskDefinition calculate action [product action calculator]
Activity_1w1cci3 error Element of type bpmn:CallActivity must have one extension element of type zeebe:CalledElement fulfill product action

But all types include in file, for example:
zeebe:calledElement:

<bpmn:callActivity id="Activity_1w1cci3" name="fulfill product action">
      <bpmn:extensionElements>
         <zeebe:calledElement processId="ProductFulfillment" propagateAllChildVariables="false" />
         <zeebe:ioMapping>
            <zeebe:input source="=productAction" target="productAction" />
         </zeebe:ioMapping>
      </bpmn:extensionElements>
      <bpmn:incoming>Flow_0c05f1n</bpmn:incoming>
      <bpmn:outgoing>Flow_0krmk5r</bpmn:outgoing>
</bpmn:callActivity>

zeebe:TaskDefinition:

<bpmn:serviceTask id="Activity_0xo3d6b" name="calculate action [product action calculator]">
      <bpmn:extensionElements>
        <zeebe:taskDefinition type="http" retries="3" />
        <zeebe:ioMapping>
            <zeebe:input source="=productEvent.productId" target="body.product.id" />
            <zeebe:output source="=body" target="productAction" />
        </zeebe:ioMapping>
        <zeebe:taskHeaders>
            <zeebe:header key="method" value="POST" />
            <zeebe:header key="url" value="{{PUBLIC_URL}}/productActionCalculator/calculateActionBySubscriptionTerminatedEvent" />
        </zeebe:taskHeaders>
</bpmn:extensionElements>

What i do wrong? I run on node 18, macOs 12.1 (Monterey)

@nikku
Copy link
Member

nikku commented Nov 25, 2022

You are running into bpmn-io/bpmnlint#8.

Essentially stock bpmnlint is not aware of the Camunda moddle changes that are used to check the rules against. We'd need to fix this before this gets usable on the Commandline.

@nikku nikku added the backlog Queued in backlog label Nov 26, 2022 — with bpmn-io-tasks
@nikku nikku added the spring cleaning Could be cleaned up one day label Feb 1, 2023
@nikku nikku added the bug Something isn't working label Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Queued in backlog bug Something isn't working spring cleaning Could be cleaned up one day
Projects
None yet
Development

No branches or pull requests

2 participants