Workflow Designer Code Editor
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
The Code Editor has several features to simplify the process of writing and editing code. The exact features that are available vary, depending on the options set for the Code Editor in the Options dialog box in the Tools menu.
There are three ways to open the Code Editor:
- **In the Solution Explorer **By selecting a workflow and choosing the View Code button or by double-clicking the workflow.
- **Right-clicking **By right-clicking a transition or shape and choosing view code.
- **Double-clicking **By double-clicking a workflow shape or transition.
Code Pane
The Code pane is the area where you enter your code text. It contains the statement builder features available for Microsoft® Office XP Developer.
You can set options that affect the behavior of text in the Code pane as it relates to indenting, tabbing, dragging and dropping of text, and so forth.
Objects drop-down list box
The Objects drop-down list box contains a list of all the transitions and states that are in the workflow diagram. The State and Transition Name property is displayed here.
Procedure drop-down list box
The Procedure drop-down list box contains the available list of functions in which you can write code.
Note The Rollback functions and Receive transitions are only available in Exchange. There is no Rollback function or Receive transition in Workflow Applications for SQL Server.
- When a state is selected, the drop-down list box will contain OnEnter, OnEnterValidate, OnExit, OnExitValidate, OnEnterRollback, and OnExitRollback.
- When a Delete transition is selected, the drop-down list box will contain OnDelete, OnDeleteValidate, and OnDeleteRollback.
- When a Create transition is selected, the drop-down list box will contain OnCreate, OnCreateValidate, and OnCreateRollback.
- When a Change transition is selected, the drop-down list box will contain OnChange, OnChangeValidate, and OnChangeRollback.
- When a Receive transition is selected, the drop-down list box will contain OnReceive, OnReceiveValidate, and OnReceiveRollback.
- When an Expire transition is selected, the drop-down list box will contain OnExpire, OnExpireValidate, and OnExpireRollback.
Horizontal and Vertical Scroll Bars
The horizontal and vertical scroll bars make it possible for you to scroll the Code pane horizontally and vertically, so you can view the code that extends beyond the viewable edges of the Code pane.
See Also
Developing Office Developer Applications | Creating Projects | Developing Workflow Applications for Exchange Server | Developing Workflow Applications for SQL Server