mirror of
https://github.com/sartography/bpmn-js-spiffworkflow.git
synced 2025-02-23 13:08:11 +00:00
fixed getting a send task without a message selected w/ burnettk cullerton
This commit is contained in:
parent
9471a6b7bd
commit
c6af750012
@ -11,11 +11,14 @@ export function MessagePayload(props) {
|
||||
const debounce = useService('debounceInput');
|
||||
|
||||
const getMessagePayloadObject = () => {
|
||||
const businessObject = shapeElement.businessObject;
|
||||
const taskMessage = businessObject.messageRef
|
||||
const messages = findMessageModdleElements(businessObject)
|
||||
for (let message of messages) {
|
||||
const { businessObject } = shapeElement;
|
||||
const taskMessage = businessObject.messageRef;
|
||||
const messages = findMessageModdleElements(businessObject);
|
||||
if (taskMessage) {
|
||||
for (const message of messages) {
|
||||
if (message.id === taskMessage.id) {
|
||||
const { extensionElements } = message;
|
||||
if (extensionElements) {
|
||||
return message.extensionElements
|
||||
.get('values')
|
||||
.filter(function getInstanceOfType(e) {
|
||||
@ -23,6 +26,8 @@ export function MessagePayload(props) {
|
||||
})[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
@ -38,7 +43,9 @@ export function MessagePayload(props) {
|
||||
const { businessObject } = shapeElement;
|
||||
let MessagePayloadObject = getMessagePayloadObject();
|
||||
if (!MessagePayloadObject) {
|
||||
MessagePayloadObject = businessObject.$model.create('spiffworkflow:messagePayload');
|
||||
MessagePayloadObject = businessObject.$model.create(
|
||||
'spiffworkflow:messagePayload'
|
||||
);
|
||||
// if (type !== SCRIPT_TYPE.bpmn) {
|
||||
if (!businessObject.extensionElements) {
|
||||
businessObject.extensionElements = businessObject.$model.create(
|
||||
|
@ -48,7 +48,7 @@
|
||||
</bpmn:correlationPropertyRetrievalExpression>
|
||||
</bpmn:correlationProperty>
|
||||
|
||||
<bpmn:correlationProperty id="singer" name="Singer's Name">
|
||||
<bpmn:correlationProperty id="singer_name" name="Singer's Name">
|
||||
<bpmn:correlationPropertyRetrievalExpression messageRef="love_letter_response">
|
||||
<bpmn:formalExpression>to.name</bpmn:formalExpression>
|
||||
</bpmn:correlationPropertyRetrievalExpression>
|
||||
|
Loading…
x
Reference in New Issue
Block a user