Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ pnpm-debug.log*
test-results/
tests/coverage
tests/playwright-report
test-reports/


# unit testing coverage
Expand Down
26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@
"@mui/material": "^5.16.7",
"@mui/styles": "^5.16.7",
"@mui/x-date-pickers": "^7.20.0",
"@pega/auth": "^0.2.17",
"@pega/auth": "^0.2.26",
"@pega/cosmos-react-condition-builder": "^7.0.4",
"@pega/cosmos-react-core": "^7.0.4",
"@pega/cosmos-react-work": "^7.0.4",
"@pega/react-sdk-components": "~24.2.10",
"@pega/react-sdk-components": "~0.242.9",
"@storybook/react-webpack5": "^8.6.14",
"@tinymce/tinymce-react": "^5.1.1",
"@types/styled-components": "^5.1.34",
Expand Down Expand Up @@ -92,9 +92,9 @@
"@loadable/component": "^5.16.3",
"@pega/configs": "^0.7.0",
"@pega/constellationjs": "~0.242.7",
"@pega/dx-component-builder-sdk": "24.2.10",
"@pega/dx-component-builder-sdk": "~0.242.16",
"@pega/pcore-pconnect-typedefs": "~3.2.2",
"@pega/react-sdk-overrides": "~24.2.10",
"@pega/react-sdk-overrides": "~0.242.9",
"@playwright/test": "^1.52.0",
"@storybook/addon-essentials": "^8.6.14",
"@storybook/addon-links": "^8.6.14",
Expand Down
10 changes: 7 additions & 3 deletions src/samples/Embedded/MainScreen/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,17 @@ export default function MainScreen(props: MainScreenProps) {
// Subscribe to the EVENT_CANCEL event to handle the assignment cancellation
PCore.getPubSubUtils().subscribe(PCore.getConstants().PUB_SUB_EVENTS.EVENT_CANCEL, () => cancelAssignment(), 'cancelAssignment');

// Subscribe to the 'assignmentFinished' event to handle assignment completion
PCore.getPubSubUtils().subscribe('assignmentFinished', () => assignmentFinished(), 'assignmentFinished');
// Subscribe to the END_OF_ASSIGNMENT_PROCESSING event to handle assignment completion
PCore.getPubSubUtils().subscribe(
PCore.getConstants().PUB_SUB_EVENTS.CASE_EVENTS.END_OF_ASSIGNMENT_PROCESSING,
() => assignmentFinished(),
'endOfAssignmentProcessing'
);

return () => {
// unsubscribe to the events
PCore.getPubSubUtils().unsubscribe(PCore.getConstants().PUB_SUB_EVENTS.EVENT_CANCEL, 'cancelAssignment');
PCore.getPubSubUtils().unsubscribe('assignmentFinished', 'assignmentFinished');
PCore.getPubSubUtils().unsubscribe(PCore.getConstants().PUB_SUB_EVENTS.CASE_EVENTS.END_OF_ASSIGNMENT_PROCESSING, 'endOfAssignmentProcessing');
};
});

Expand Down
Loading