cancel
Showing results for 
Search instead for 
Did you mean: 

Add Jscript functionality for moving BPF stages

Author Name: JEROEN DE WIT

Hi,

I'm currently working with the new Business Process Flows functionality and I would like to see Jscript support for switching stages and manipulating fields inside the Business Process Flows itself.

It would be very nice if we would be able to add Jscript functions against a OnMoveNextStage and OnMovePreviousStage in the same fashion as we assign function to the OnSave and OnLoad functionality on Forms.

The functions should give information about the currently selected stage (ID and friendly name), the stage it's moving towards and possibly even the fields included in the stage with full Xrm.Page support for manipulating the fields.

I'm currently manipulating fields by prepending "header_process" in the field ID when I want to manipulate BPF fields but this functionality has to work based on switching towards a specific stage.

Adding OnSave functions does not fully cover this functionality as OnSave will trigger before the stage is actually changed.

Status: Planned

Thank you for your feedback. There are currently event handlers to trigger JavaScript functions when the stage changes (navigation occurs), when a stage is selected (peek into a stage, but without navigating) and when the process status changes (from/to Active, Abandoned and Finished). With the API, you can also get information about the currently active or selected stage, as well as the process itself. Please refer to MSDN for more information.

Hiding a stage is supported by defining branching logic that gets evaluated and alter the active path. Arbitrary jumps with a MoveToStage function would corrupt the traversed path information and are, consequently, not supported.

Regarding exposing the stage steps as full fields in the Xrm.Page.ui controls collection and refreshing the process control (chevrons), these are great suggestions! We will consider this in our roadmap.

Sincerely,
Carlos Mendonça
PM, Microsoft

Comments
Level: Powered On
Status changed to: Planned

Thank you for your feedback. There are currently event handlers to trigger JavaScript functions when the stage changes (navigation occurs), when a stage is selected (peek into a stage, but without navigating) and when the process status changes (from/to Active, Abandoned and Finished). With the API, you can also get information about the currently active or selected stage, as well as the process itself. Please refer to MSDN for more information.

Hiding a stage is supported by defining branching logic that gets evaluated and alter the active path. Arbitrary jumps with a MoveToStage function would corrupt the traversed path information and are, consequently, not supported.

Regarding exposing the stage steps as full fields in the Xrm.Page.ui controls collection and refreshing the process control (chevrons), these are great suggestions! We will consider this in our roadmap.

Sincerely,
Carlos Mendonça
PM, Microsoft

Level: Powered On
Thanks guys, this is a well known ask and very helpful for validating our beliefs. We will be considering this for the future roadmap.
Level: Powered On
Also need the following: - ability to move to a specific stage (i.e. MoveToStage function) - ability to refresh ribbon (i.e. RefreshRibbon function) - ability to hide a specific stage (i.e. HideStage)