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

Add support for script tasks in NodeJS #4

Open
cosmin-harangus opened this issue Oct 18, 2017 · 0 comments
Open

Add support for script tasks in NodeJS #4

cosmin-harangus opened this issue Oct 18, 2017 · 0 comments

Comments

@cosmin-harangus
Copy link
Member

cosmin-harangus commented Oct 18, 2017

The script task element should allow users to execute scripts or files from any other programming language.
The initial version of the Hashiru BPMN engine should allow support the following programming languages:

  • Nodejs(required)
  • Golang(coming soon)
  • Elixir(coming soon)

Bellow is an example BPMN representation of the script task in camunda:

<bpmn:scriptTask id="Task_1ymg9vn" name="CHECK USER EXISTS" scriptFormat="nodejs" camunda:resultVariable="user" camunda:resource="scripts/user/get_by_username.js">
  <bpmn:extensionElements>
    <camunda:inputOutput>
      <camunda:inputParameter name="username" />
      <camunda:inputParameter name="password" />
      <camunda:outputParameter name="user">user</camunda:outputParameter>
    </camunda:inputOutput>
  </bpmn:extensionElements>
  <bpmn:incoming>SequenceFlow_0u2ggjm</bpmn:incoming>
  <bpmn:outgoing>SequenceFlow_1i6wlcd</bpmn:outgoing>
  <bpmn:property id="Property_04h1su1" name="__targetRef_placeholder" />
  <bpmn:dataInputAssociation id="DataInputAssociation_08cossw">
    <bpmn:sourceRef>DataStoreReference_0o13718</bpmn:sourceRef>
    <bpmn:targetRef>Property_04h1su1</bpmn:targetRef>
  </bpmn:dataInputAssociation>
</bpmn:scriptTask>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant