Ensures that a case is open inside a using-scope.
Inheritance Hierarchy
Scanjour.Workflow4.ActivityLibraryOpenCaseScope
Namespace: Scanjour.Workflow4.ActivityLibrary
Assembly: Scanjour.Workflow4.ActivityLibrary_23.2.0.0 (in Scanjour.Workflow4.ActivityLibrary_23.2.0.0.dll) Version: 23.2.0.0 (23.2.0.0)
Syntax
The OpenCaseScope type exposes the following members.
Constructors
Name | Description | |
---|---|---|
OpenCaseScope |
Provides a case, which is ensured to be open. If the case was closed, then the instance registers the close
time of the case and subsequently reopens it. When dispose is called the case will be reverted to
the state that it was in when the instance was created.
Hereby the instance will ensure that the case is open inside the using-scope and that the original state
is restored afterwards.
NOTE: The ODataService MUST be a new service reference in order for this code to run independently of the
inline code which may create another ODataService which will fail - if the ODataService was the same instance
then the instance would be marked as failing and subsequent calls would throw an exception.
This is why the dataService is implemented as a delegate
|
Properties
Name | Description | |
---|---|---|
Case |
The case which is open.
| |
UpdateUserForLocking |
The user that will be used to lock the case (update code).
|
Methods
Name | Description | |
---|---|---|
Dispose |
Restores the original state of the case.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
See Also