Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 77 additions & 1 deletion packages/core/locales/en.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions services/bpmn-service/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"editor.trimAutoWhitespace": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
"source.fixAll.eslint": true
"source.organizeImports": "explicit",
"source.fixAll.eslint": "explicit"
},

"files.exclude": {
Expand Down
12 changes: 12 additions & 0 deletions services/bpmn-service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,23 @@ npm i @sourceloop/bpmn-service
});
```
- Implement `WorkflowProvider` (refer [this](#bpmnprovider)) and bind it to `WorkflowServiceBindings.WorkflowManager` key -

```typescript
this.bind(WorkflowServiceBindings.WorkflowManager).toProvider(
WorkflowProvider,
);
```

OR

Use an existing workflow provider, like the Camunda 7 provided with this library -

```typescript
this.component(CamundaComponent);
```

You also need to install the [camunda-external-task-client-js](https://www.npmjs.com/package/camunda-external-task-client-js) library to use this component.

- Add the `WorkflowServiceComponent` to your Loopback4 Application (in `application.ts`).
```typescript
// import WorkflowServiceComponent
Expand Down
12 changes: 10 additions & 2 deletions services/bpmn-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,19 @@
"./sequelize": {
"types": "./dist/repositories/sequelize/index.d.ts",
"default": "./dist/repositories/sequelize/index.js"
},
"./camunda": {
"types": "./dist/connectors/camunda/index.d.ts",
"default": "./dist/connectors/camunda/index.js"
}
},
"typesVersions": {
"*": {
"sequelize": [
"./dist/repositories/sequelize/index.d.ts"
],
"camunda": [
"./dist/connectors/camunda/index.d.ts"
]
}
},
Expand Down Expand Up @@ -75,7 +82,6 @@
"@loopback/rest": "^14.0.2",
"@sourceloop/core": "^14.2.3",
"ajv": "^8.11.0",
"camunda-external-task-client-js": "^2.3.1",
"dotenv": "^16.0.3",
"dotenv-extended": "^2.9.0",
"jsonwebtoken": "^9.0.0",
Expand All @@ -90,6 +96,7 @@
"@loopback/build": "^11.0.2",
"@loopback/eslint-config": "^15.0.2",
"@loopback/testlab": "^7.0.2",
"camunda-external-task-client-js": "^2.3.1",
"@types/camunda-external-task-client-js": "^1.3.3",
"@types/jsonwebtoken": "^9.0.0",
"@types/lodash": "^4.14.182",
Expand All @@ -102,7 +109,8 @@
"widdershins": "^4.0.1"
},
"optionalDependencies": {
"@loopback/sequelize": "^0.6.2"
"@loopback/sequelize": "^0.6.2",
"camunda-external-task-client-js": "^2.3.1"
},
"overrides": {
"widdershins": {
Expand Down
Loading
Loading