diff --git a/src/contextProvider/zeebe/TooltipProvider.js b/src/contextProvider/zeebe/TooltipProvider.js index b3f52c608..e0f2e8d11 100644 --- a/src/contextProvider/zeebe/TooltipProvider.js +++ b/src/contextProvider/zeebe/TooltipProvider.js @@ -27,9 +27,9 @@ const TooltipProvider = { return (
- { translate('Define a boolean condition expression that defines when a flow is taken. ')} + { translate('Define a boolean condition expression that defines when this flow is taken. ')} - { translate('How to define conditions') } + { translate('Learn how to define conditions.') }
); @@ -40,7 +40,7 @@ const TooltipProvider = { return (
- { translate('Evaluate a business rule, for example a DMN. To add a custom implementation use a job worker. ')} + { translate('Evaluate a business rule, for example a DMN. To add a custom implementation, use a job worker. ')} { translate('Learn more.') } @@ -54,7 +54,7 @@ const TooltipProvider = { return (
- { translate('Implement a script task. To add a custom implementation use a job worker. ')} + { translate('Implement a script task using an inline FEEL expression. To add a custom implementation, use a job worker. ')} { translate('Learn more.') } @@ -67,7 +67,7 @@ const TooltipProvider = { return (
- { translate('Embed Camunda Forms or use a form key to specify an identifier to associate a form to the user task. ')} + { translate('Embed a form created with the Camunda Forms editor. To associate a custom form, application, or URL to the user task, specify a form key. ')} { translate('Learn more.') } @@ -81,9 +81,14 @@ const TooltipProvider = { if (is(element, 'bpmn:ReceiveTask')) { return (
- { translate('Define the name of the message (e.g. ')}Money collected{translate(') and the ')}correlationKey{translate(' expression (e.g. ')}= orderId{translate('). ')} - - { translate('Learn more.') } + { translate('Define the name of the message (e.g. ')}Money collected{translate(') and the ')}correlationKey{translate(' expression (e.g. ')}= orderId{translate(')')}{translate(' to subscribe to. ')} + {translate('Learn more how to ')} + + { translate('send ') } + + {translate('and ')} + + { translate('receive messages. ') }
); @@ -91,7 +96,7 @@ const TooltipProvider = { return (
- { translate('Define the name of the message (e.g. ')}Money collected{translate('). ')} + { translate('Define the name of the message (e.g. ')}Money collected{translate(') and the ')}correlationKey{translate(' expression (e.g. ')}= orderId{translate(')')}{translate(' to subscribe to. ')} { translate('Learn more.') } @@ -104,7 +109,7 @@ const TooltipProvider = { return (
- { translate('Define the BPMN process id of the called process (e.g. ')} shipping-process + { translate('Define the ID of the process to call (e.g. ')} shipping-process {translate(' or ')}= "shipping-" + tenantId {translate('). ')} { translate('Learn more.') } @@ -119,8 +124,8 @@ const TooltipProvider = { if (is(element, 'bpmn:ServiceTask')) { return ( -
{translate('Specify which job workers handle the task work (e.g. ')}order-items{translate('). ')} - + @@ -129,7 +134,7 @@ const TooltipProvider = { if (is(element, 'bpmn:BusinessRuleTask')) { return ( -
{translate('Specify which job workers handle the task work. ')} +
{translate('Specify which job workers handle the task work to evaluate business rules. ')} { translate('Learn more.') } @@ -139,7 +144,7 @@ const TooltipProvider = { if (is(element, 'bpmn:ScriptTask')) { return ( -
{translate('Specify which job workers handle the task work (e.g. ')}script{translate('). ')} +
{translate('Specify which job workers handle the task work to execute a script. ')} { translate('Learn more.') } @@ -149,7 +154,7 @@ const TooltipProvider = { if (is(element, 'bpmn:SendTask')) { return ( -
{translate('Specify which job workers handle the task work (e.g. ')}kafka{translate(' or ')}mail{translate('). ')} +
{translate('Specify which job workers handle the task work to send a message (e.g. ')}kafka{translate(' or ')}mail{translate('). ')} { translate('Learn more.') } @@ -173,6 +178,8 @@ const TooltipProvider = { return (
+ {translate('Execute this task for each element of a given collection. ')} +
{translate('Define an input collection expression that defines the collection to iterate over (e.g. ')}= items{translate('). ')} {translate('To collect the output define the output collection and the output element expressions. ')} @@ -200,7 +207,7 @@ const TooltipProvider = { return (
- { translate('Create a new local variable in the scope where the mapping is defined. ')} + { translate('Create a new local variable in the scope of this task. ')} { translate('Learn more.') } @@ -213,7 +220,7 @@ const TooltipProvider = { return (
- { translate('Customize how job/message variables are merged into the process instance. ')} + { translate('Customize how result variables are merged into the global scope of the process instance. ')} { translate('Learn more.') } diff --git a/test/spec/provider/zeebe/MessageProps.spec.js b/test/spec/provider/zeebe/MessageProps.spec.js index d2310fd0b..352614020 100644 --- a/test/spec/provider/zeebe/MessageProps.spec.js +++ b/test/spec/provider/zeebe/MessageProps.spec.js @@ -12,7 +12,8 @@ import { } from 'test/TestHelper'; import { - query as domQuery + query as domQuery, + queryAll as domQueryAll } from 'min-dom'; import CoreModule from 'bpmn-js/lib/core'; @@ -531,11 +532,13 @@ describe('provider/zeebe - MessageProps', function() { // when await openTooltip(); - const documentationLinkGroup = domQuery('.bio-properties-panel-tooltip-content a', container); + const documentationLinkGroups = domQueryAll('.bio-properties-panel-tooltip-content a', container); // then - expect(documentationLinkGroup).to.exist; - expect(documentationLinkGroup.title).to.equal('Receive task documentation'); + expect(documentationLinkGroups).to.exist; + expect(documentationLinkGroups).to.have.length(2); + expect(documentationLinkGroups[0].title).to.equal('Send task documentation'); + expect(documentationLinkGroups[1].title).to.equal('Receive task documentation'); })); });