Dynamics CRM 2015 New Feature (6): Bussiness Flow Contidtion & Branche (2), dynamicscrm2015
In the previous article, we discussed some configurable Feature of Business Flow. Let's take a look at the programmable Feature in Business Flow. The new system provides some programming APIs for us. In Dynamics CRM 2013, we still cannot program BF. We believe that through these Feature, we can develop more agile systems. Let's take a simple look at the APIS provided by the system for us:
1. OnChange & OnSelected provides two event hooks for us, but the only pity is that we can only add these functions in JS mode.
2. Navigation provides two Navigation functions: moveNext and movePrevious. As the name suggests, BF can be conveniently navigated.
3. BF-related programming types on the Client side. The new system provides three programming models: Process, Stage, and Step. In addition, we can use APIs to obtain the current values of these models and perform specific business operations.
Obtain Process: contentIFrame0.Xrm. page. data. process. getActiveProcess () Get Stage: contentIFrame0.Xrm. page. data. process. getActiveProcess (). getStages () Get Step: contentIFrame0.Xrm. page. data. process. getActiveProcess (). getStages (). get (0 ). getSteps ()
Process
Stage
Step