@processmaker/screen-builder 3.8.14 → 3.8.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/components/task.vue
CHANGED
|
@@ -690,7 +690,7 @@ export default {
|
|
|
690
690
|
return null;
|
|
691
691
|
}
|
|
692
692
|
},
|
|
693
|
-
|
|
693
|
+
|
|
694
694
|
/**
|
|
695
695
|
* Handles redirection upon process completion, considering destination type and user task validation.
|
|
696
696
|
* @async
|
|
@@ -829,7 +829,20 @@ export default {
|
|
|
829
829
|
* @param {Object} data - The event data received from the socket listener.
|
|
830
830
|
*/
|
|
831
831
|
handleProcessUpdate(data) {
|
|
832
|
-
|
|
832
|
+
const { event, elementDestination, tokenId } = data;
|
|
833
|
+
|
|
834
|
+
// If the activity is completed and there is an element destination, set the element destination to the task
|
|
835
|
+
if (
|
|
836
|
+
event === "ACTIVITY_COMPLETED" &&
|
|
837
|
+
this.task.id === tokenId &&
|
|
838
|
+
elementDestination
|
|
839
|
+
) {
|
|
840
|
+
this.task.elementDestination = elementDestination;
|
|
841
|
+
// update allow_interstitial based on the element destination change after the submit
|
|
842
|
+
this.task.allow_interstitial = elementDestination.type === "displayNextAssignedTask";
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
if (event === 'ACTIVITY_EXCEPTION') {
|
|
833
846
|
this.$emit('error', this.requestId);
|
|
834
847
|
window.location.href = `/requests/${this.requestId}`;
|
|
835
848
|
}
|