OpenCaseScope Class

Scanjour Workflow4 Reference Manual
Ensures that a case is open inside a using-scope.
Inheritance Hierarchy

SystemObject
  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

public class OpenCaseScope : IDisposable

The OpenCaseScope type exposes the following members.

Constructors

  NameDescription
Public methodOpenCaseScope
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
Top
Properties

  NameDescription
Public propertyCase
The case which is open.
Public propertyUpdateUserForLocking
The user that will be used to lock the case (update code).
Top
Methods

  NameDescription
Public methodDispose
Restores the original state of the case.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also

Reference