OpenCaseScope Constructor

Scanjour Workflow4 Reference Manual
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

Namespace:  Scanjour.Workflow4.ActivityLibrary
Assembly:  Scanjour.Workflow4.ActivityLibrary_23.3.0.0 (in Scanjour.Workflow4.ActivityLibrary_23.3.0.0.dll) Version: 23.3.0.0 (23.3.0.0)
Syntax

public OpenCaseScope(
	string caseId,
	Func<ODataService> context,
	string updateUserUsedForLocking = "SJPROCESSUSER"
)

Parameters

caseId
Type: SystemString
The identifier of the case
context
Type: SystemFuncODataService
Provides access to the case.
updateUserUsedForLocking (Optional)
Type: SystemString
The user to update the case
See Also

Reference