Squashed 'bpmn-js-spiffworkflow/' changes from 24a71ec5e..fc46b6fe5

fc46b6fe5 do not update properties if we do not need to when populating a dropdown w/ burnettk
ef9d25e49 Merge pull request #29 from sartography/dependabot/github_actions/JS-DevTools/npm-publish-2
254dc2103 Bump JS-DevTools/npm-publish from 1 to 2
2214ac643 Merge branch 'main' of github.com:sartography/bpmn-js-spiffworkflow into main
d37a2614c Show the instructions on the script tasks as well - if for no other reason than it makes things easier to test.
4b24261d5 Merge pull request #28 from sartography/dependabot/github_actions/dependabot/fetch-metadata-1.4.0
05697d43b Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0
69135655f Adding the ability to specify instructions to the end user when competing service tasks and wait events

git-subtree-dir: bpmn-js-spiffworkflow
git-subtree-split: fc46b6fe599a5d4932286c78db3675c7a150d36c
This commit is contained in:
burnettk 2023-04-21 11:22:56 -04:00
parent 79c0366cc7
commit fae42d32ba
4 changed files with 14 additions and 14 deletions

View File

@ -15,7 +15,7 @@ jobs:
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.3.6
uses: dependabot/fetch-metadata@v1.4.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs

View File

@ -18,7 +18,7 @@ jobs:
node-version: 18
- run: npm install
- run: npm test
- uses: JS-DevTools/npm-publish@v1
- uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
access: public

View File

@ -37,14 +37,18 @@ export default function ExtensionsPropertiesProvider(
createBusinessRuleGroup(element, translate, moddle, commandStack)
);
}
if (isAny(element, ['bpmn:ManualTask', 'bpmn:UserTask', 'bpmn:EndEvent'])) {
if (
isAny(element, [
'bpmn:ManualTask',
'bpmn:UserTask',
'bpmn:ServiceTask',
'bpmn:EndEvent',
'bpmn:ScriptTask',
'bpmn:IntermediateCatchEvent',
])
) {
groups.push(
createUserInstructionsGroup (
element,
translate,
moddle,
commandStack
)
createUserInstructionsGroup(element, translate, moddle, commandStack)
);
}
if (is(element, 'bpmn:ServiceTask')) {
@ -237,7 +241,7 @@ function createUserInstructionsGroup (
component: SpiffExtensionTextArea,
name: 'spiffworkflow:instructionsForEndUser',
label: 'Instructions',
description: 'The instructions to display when completing this task.',
description: 'Displayed above user forms or when this task is executing.',
},
{
element,

View File

@ -45,10 +45,6 @@ function requestServiceTaskOperators(eventBus, element, commandStack) {
serviceTaskOperators = event.serviceTaskOperators.sort((a, b) =>
a.id.localeCompare(b.id)
);
commandStack.execute('element.updateProperties', {
element,
properties: {},
});
}
});
}