Workflow has some built in
values like, “In Progress”, “Failed on Start”, Error Occurred”, etc. The
integer value for MAX is 15. The values from 0 to 14 are reserved for internal
and built-in values such as InProgress, Completed, Error Occurred etc.
First we must open the
Elements.xml file and place the code below:
<ExtendedStatusColumnValues>
<StatusColumnValue>Pending</StatusColumnValue>
<StatusColumnValue>Started</StatusColumnValue>
<StatusColumnValue>Phase First Completed</StatusColumnValue>
<StatusColumnValue>On Last Stage</StatusColumnValue>
<StatusColumnValue>Completed</StatusColumnValue>
</ExtendedStatusColumnValues>
Let us assume that your
"SetState" activity name is "InitialState". When you double
click on the "SetState" activity, insert the line below in the code
window:
InitialState.State = (Int32)SPWorkflowStatus.MAX;
The integer value for MAX
is 15.
No comments:
Post a Comment