Click or drag to resize

State Class

Represents one possible state of a content-type's items. Content-types can have multiple states, and when these are linked by transitions, this becomes a workflow.
Inheritance Hierarchy

Namespace:  Packflow.Modeling
Assembly:  MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax
C#
public class State : ModelingObject_Extended, IState

The State type exposes the following members.

Constructors
  NameDescription
Public methodState
Initializes a new instance of the State class.
Top
Properties
  NameDescription
Public propertyAutoStartTask
Gets or sets a value indicating whether a task should be automatically started when the user opens the item's form.
Public propertyBackColor
Gets or sets the back color of the shape in the workflow schema. This is an helper property, the source value is BackColoration.
Public propertyCanDoIds
Gets or sets the list of "Can do" activities' ids.
Public propertyCanDos
Gets or sets the list of "Can do" activities.
Public propertyColoration
Gets or sets the back color (of the shape in the workflow schema) as text (ARGB format).
Public propertyConfirmFinishTask
Gets or sets a value indicating whether a confirmation dialog is shown when the user tries to finish his task.
Public propertyDefaultSection
Gets or sets the default section. When this state is the current state of an item, the form will open with the default section directly shown (selecting the corresponding tag or by a default scroll).
Public propertyDefaultSectionId
Gets or sets the default section's id. When this state is the current state of an item, the form will open with the default section directly shown (selecting the corresponding tag or by a default scroll).
Public propertyDescription
Gets or sets the description.
Public propertyDescriptionRes
Gets or sets the resource containing translations for the Description property.
Public propertyDisplayName
Gets or sets the display name.
Public propertyDisplayNameRes
Gets or sets the resource containing translations for the DisplayName property.
Public propertyEnableTasks
Gets or sets a value indicating whether tasks can be created when an item is in this state. Tasks are assigned to the users having the privilege "Responsible" for this particular state.
Public propertyFontColor
Gets or sets the font color of the shape in the workflow schema. This is an helper property, the source value is FontColoration.
Public propertyFontColoration
Gets or sets the font color (of the shape in the workflow schema) as text (ARGB format).
Public propertyGuid
Gets the GUID identifying this object.
(Inherited from ModelingObject.)
Public propertyHeight
Gets or sets the height of the workflow shape. Default value: 70.
Public propertyId
Gets the id identifying this object.
(Inherited from ModelingObject.)
Public propertyInstanceGuid
Gets a guid, unique for this object instance.
(Inherited from ModelingObject.)
Public propertyInstanceLanguage
Gets or sets the instance language (two letters format).
(Inherited from ModelingObject.)
Public propertyIsExtended
Gets a value indicating whether this object is Extended (ModelingObject_Extended) or not, allowing to avoid an "is" verification.
(Inherited from ModelingObject_Extended.)
Public propertyMaxParticipationLevel
Gets or sets the maximum participation level. The nature of this level is determined by the MaxParticipationLevelType property. If the maximum participation has been reached, the state instance of an item can be closed even if some tasks have not been completed yet.
Public propertyMaxParticipationLevelType
Gets or sets a value indicating how the maximum participation is calculated.
Public propertyMinParticipationLevel
Gets or sets the minimum participation level. The nature of this level is determined by the MinParticipationLevelType property. The state instance of an item cannot be closed as long as the minimum participation has not been reached, this means that enough tasks must have been accomplished before the workflow can proceed to the next step.
Public propertyMinParticipationLevelType
Gets or sets a value indicating how the minimum participation is calculated.
Public propertyModel
Gets the model hosting this object. The Model is the root object of the modeling tree.
(Inherited from ModelingObject.)
Public propertyName
Gets the name of this object.
(Inherited from ModelingObject.)
Public propertyOrderAndDisplayName
Gets the display name prefixed with the order number, if any.
Public propertyOrderAndName
Gets the name prefixed with the order number, if any.
Public propertyOrderNo
Gets or sets the state order number. This value is optional. Used in the composition of the OrderAndDisplayName property.
Public propertyOrderNoPrefix
Gets the order no formatted as a name prefix, or an empty string if the order no is empty.
Public propertyParent
Gets the parent object in the modeling tree.
(Inherited from ModelingObject.)
Public propertyParentContentType
Gets the parent content-type.
Public propertyParentType
Gets the type of the parent object in the modeling tree.
(Inherited from ModelingObject.)
Public propertyParticipantsFieldId
Gets or sets the column's id of the field that will receive the current actors (having a task) as value.
Public propertyPosX
Gets or sets the horizontal position in the workflow schema. Default value: 50.
Public propertyPosY
Gets or sets the vertical position in the workflow schema. Default value: 50.
Public propertyShowInPermissionGrid
Gets or sets a value indicating whether this state should be shown in Packflow Designer in the grid of content-type permissions. This allows to setup permissions specific to this state.
Public propertyStartDateColumnId
Gets or sets the column's id of the field that will receive the current date when an instance of this state is closed on an item.
Public propertyStep
Gets or sets the related step.
Public propertyStepId
Gets or sets the related step's id.
Public propertystringFont
Gets or sets the text's font (of the shape in the workflow schema) as text.
Public propertyTasksDueDates
Gets the due dates' definitions for the tasks created for this state.
Public propertyTextFont
Gets or sets the text's font of the shape in the workflow schema. This is an helper property, the source value is StringFont.
Public propertyToDo
Gets or sets the "To do" activity.
Public propertyToDoId
Gets or sets the "To do" activity's id.
Public propertyTransitions
Gets the transitions. These transitions have this state as inbound state.
Public propertyWidth
Gets or sets the width of the workflow shape. Default value: 150.
Top
Methods
  NameDescription
Public methodAddTasksDueDate
Adds a new task due date.
Public methodAddTransition
Adds a new transition.
Public methodChildren
Returns all children objects.
(Inherited from ModelingObject.)
Public methodDeleteTransition
Deletes the specified transition.
Public methodGetGuid
Gets the Guid.
(Inherited from ModelingObject.)
Public methodGetListItem
Gets a text representing this object using Id and Name.
(Inherited from ModelingObject.)
Public methodGetName
Gets the name.
(Inherited from ModelingObject.)
Public methodGetParentParentType
Returns the first parent of a given type in the modeling tree. Returns null if not found.
(Inherited from ModelingObject.)
Public methodGetStateDisplayName
Gets the state's display name.
Public methodGetStateGuid
Gets the state's GUID.
Public methodGetStateName
Gets the state's name.
Public methodGetTransitionById
Gets a transition by its id.
Public methodIsMaxParticipationReached
Determines whether the maximum participation has been reached. If the maximum participation has been reached, the state instance of an item can be closed even if some tasks have not been completed yet.
Public methodIsMinParticipationReached
Determines whether the minimum participation has been reached. The state instance of an item cannot be closed as long as the minimum participation has not been reached, this means that enough tasks must have been accomplished before the workflow can proceed to the next step.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodAsT
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.)
Public Extension MethodEqualsAll
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.)
Public Extension MethodEqualsAny
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.)
Public Extension MethodGetString
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.)
Public Extension MethodIsGenericListOverloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.)
Public Extension MethodIsGenericList(Type)Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.)
Public Extension MethodSerializeOverloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerialize(String)Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerializeJsonOverloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(ListType)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(DataContractJsonSerializerSettings)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Top
See Also