File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
packages/react-sdk-components/src
components/infra/Containers/FlowContainer
samples/Embedded/MainScreen Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -266,9 +266,6 @@ export const FlowContainer = (props: FlowContainerProps) => {
266266 setHasCaseMessages ( true ) ;
267267 setShowConfirm ( true ) ;
268268
269- // publish this "assignmentFinished" for mashup, need to get approved as a standard
270- PCore . getPubSubUtils ( ) . publish ( 'assignmentFinished' ) ;
271-
272269 // debugger;
273270 setCheckSvg ( Utils . getImageSrc ( 'check' , Utils . getSDKStaticConentUrl ( ) ) ) ;
274271 } else {
Original file line number Diff line number Diff line change @@ -87,13 +87,17 @@ export default function MainScreen(props: MainScreenProps) {
8787 // Subscribe to the EVENT_CANCEL event to handle the assignment cancellation
8888 PCore . getPubSubUtils ( ) . subscribe ( PCore . getConstants ( ) . PUB_SUB_EVENTS . EVENT_CANCEL , ( ) => cancelAssignment ( ) , 'cancelAssignment' ) ;
8989
90- // Subscribe to the 'assignmentFinished' event to handle assignment completion
91- PCore . getPubSubUtils ( ) . subscribe ( 'assignmentFinished' , ( ) => assignmentFinished ( ) , 'assignmentFinished' ) ;
90+ // Subscribe to the END_OF_ASSIGNMENT_PROCESSING event to handle assignment completion
91+ PCore . getPubSubUtils ( ) . subscribe (
92+ PCore . getConstants ( ) . PUB_SUB_EVENTS . CASE_EVENTS . END_OF_ASSIGNMENT_PROCESSING ,
93+ ( ) => assignmentFinished ( ) ,
94+ 'endOfAssignmentProcessing'
95+ ) ;
9296
9397 return ( ) => {
9498 // unsubscribe to the events
9599 PCore . getPubSubUtils ( ) . unsubscribe ( PCore . getConstants ( ) . PUB_SUB_EVENTS . EVENT_CANCEL , 'cancelAssignment' ) ;
96- PCore . getPubSubUtils ( ) . unsubscribe ( 'assignmentFinished' , 'assignmentFinished ' ) ;
100+ PCore . getPubSubUtils ( ) . unsubscribe ( PCore . getConstants ( ) . PUB_SUB_EVENTS . CASE_EVENTS . END_OF_ASSIGNMENT_PROCESSING , 'endOfAssignmentProcessing ' ) ;
97101 } ;
98102 } ) ;
99103
You can’t perform that action at this time.
0 commit comments