Skip to content
Discussion options

You must be logged in to vote

I found the solution by myself as this topic is perfectly documented - Implementing an Action Handler (GLSP Client)
Also important was the reference to the existing Evens provided by the GLSP protocol decribing the ElementSelection

So in summary you have to implement a custom handler for the ElementSeleciton Action:

@injectable()
export class MySelectResponseActionHandler implements IActionHandler{
    handle(action: SelectAction): void | Action {
	console.log('hi selection action !');
        // implement your custom logic to handle the action
        // Optionally issue a response action
    }
}

and register this action handler in the diagram module (“di.config.ts”):

const bpmnDiagramMo…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rsoika
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant