in the previous article, we discussed some of the configurable feature for business flow, so let's take a look at the programmable feature in business flow today. The new system provides us with a number of programming APIs that we can not program with the BF in Dynamics CRM 2013, and we believe that by using these feature well, we are able to develop more agile systems. Let's take a look at the API that the system provides for us:
1. OnChange & onselectedprovided 2 event hooks for us, but the only regret is that we can only add these corresponding functions by JS.
2.Navigation2 navigation functions are available: movenext,moveprevious. As the name implies, convenient to the BF navigation processing.
3.BF related programming typeson the client side, the new system provides us with 3 programming models: Process,stage,step. And we can use the API to get the current values of these models, and make specific business operations.
get 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
??
Dynamics CRM New Feature (6): bussiness Flow contidtion & Branche (ii)