Function: MnOnStageChange
▸ MnOnStageChange(): (target: any, key: any, descriptor: PropertyDescriptor) => void
Decorator that marks a method as an event handler for stage changed.
This event is fired when the stage of a business process flow changed.
Remarks
Available on pages: Record only.
Registration: Automatic registration at runtime.
For more information, see Microsoft Client API Reference
Example
Notify on form that the business process flow stage changed
@MnComponent({
scope: {
pageType: "record",
table: "opportunity"
}
})
export class NotifyOnBPFStageChangeComponent {
@MnOnStageChange()
onStageChange(eventArg: FormEventArg) {
eventArg.formCtx.ui.setFormNotification("Business process flow stage changed", "INFO", "BPFStageChange");
}
}
Returns
fn
▸ (target, key, descriptor): void
Parameters
| Name | Type |
|---|---|
target | any |
key | any |
descriptor | PropertyDescriptor |
Returns
void