How to set text and hyperlink in a BPMN Task Node in Angular Diagram?
This article explains how to set text and a hyperlink in a BPMN Task Node in an Angular Diagram. In Syncfusion® Angular Diagram, BPMN (Business Process Model and Notation) Task Nodes are commonly used to represent operational steps in a business process. These nodes can be enriched with textual information and hyperlinks for additional context.
<ejs-diagram #diagram id="diagram" width="100%" height="780px">
<e-nodes>
<e-node id="node1" [offsetx]="250" [offsety]="250" [width]="100" [height]="100" [shape]="shape">
<e-node-annotations>
<e-node-annotation [hyperlink]="hyperlink">
</e-node-annotation>
</e-node-annotations>
</e-node>
</e-nodes>
</ejs-diagram>
public shape: BpmnShapeModel = {
type: 'Bpmn',
shape: 'Activity',
activity: {
activity: 'Task', task: {
type: 'Send'
}
}
}
public hyperlink: HyperlinkModel = {
content: 'This is BPMN Task', link: 'https://ej2.syncfusion.com/angular/documentation/diagram/bpmn-shapes#tasks',
//Set the link to open in the current tab
hyperlinkOpenState:'CurrentTab'
}
In the above code snippet, we create a BPMN Task node with the text “This is BPMN Task” and set a hyperlink to ‘https://ej2.syncfusion.com/angular/documentation/diagram/bpmn-shapes#tasks’. The annotations property inside the node configuration allows you to define textual content and hyperlinks for the BPMN Task.
Refer to the working sample for additional details and implementation:Sample
Conclusion
I hope you enjoyed learning about how to set text and hyperlink in a BPMN Task Node in Angular Diagram.
You can refer to our Angular Diagram feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our Angular Diagram example to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our other controls. If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, BoldDesk Support, or feedback portal. We are always happy to assist you!