Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 2.07 KB

File metadata and controls

41 lines (28 loc) · 2.07 KB
title description author ms.author ms.date ms.reviewer ms.topic search.audienceType contributors
onPreProcessStatusChange event (Client API reference) in model-driven apps| MicrosoftDocs
Includes description and supported parameters for the onPreProcessStatusChange event.
HemantGaur
hemantg
03/12/2022
jdaly
reference
developer
JimDaly

onPreProcessStatusChange event (Client API reference)

[!INCLUDE]

This event occurs before the status of a process instance changes.

Use the formContext.data.process.addOnPreProcessStatusChange method to add event handlers for this event and the formContext.data.process.removeOnPreProcessStatusChange method to remove them.

From within a web resource script registered to the onPreProcessStatusChange event, a developer can invoke the following on the executionContext object passed into the web resource script:

executionContext.getEventArgs().preventDefault();

When you invoke preventDefault:

  • The state change will not be processed. The process instance will remain on the original stage in the original state.
  • The save of the main form will not be processed. If the main form was in a dirty state, it would remain in a dirty state.
  • Any web resources that registered onProcessStatusChange will not be invoked.

This client API is only supported on the unified client. The legacy web client does not support this client API.

Methods supported for this event

[!INCLUDEfooter-include]