Function: MnOnProcessStatusChange
▸ MnOnProcessStatusChange(): (target
: any
, key
: any
, descriptor
: PropertyDescriptor
) => void
Decorator that marks a method as an event handler for process status change event.
This event is fired when the business process flow status changed:
- when it is started
- when it is terminated
- when it is reactivated
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 status changed
@MnComponent({
scope: {
pageType: "record",
table: "opportunity"
}
})
export class NotifyOnBPFStatusChangeComponent {
@MnOnProcessStatusChange()
onProcessStatusChange(eventArg: FormEventArg) {
eventArg.formCtx.ui.setFormNotification("Business process flow status changed", "INFO", "BPFStatusChange");
}
}
Returns
fn
▸ (target
, key
, descriptor
): void
Parameters
Name | Type |
---|---|
target | any |
key | any |
descriptor | PropertyDescriptor |
Returns
void