Skip to main content

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
NameType
targetany
keyany
descriptorPropertyDescriptor
Returns

void

Defined in

packages/core/src/core/metadata/events.ts:759