OpenCaseScope Constructor |
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.
When overlapping case scopes occurs only the first scope will lock
Namespace: Scanjour.Workflow4.ActivityLibraryAssembly: Scanjour.Workflow4.ActivityLibrary_24.5.0.0 (in Scanjour.Workflow4.ActivityLibrary_24.5.0.0.dll) Version: 24.5.0.0 (24.5.0.0)
Syntaxpublic OpenCaseScope(
string caseId,
Uri uri,
Guid instanceId,
string updateUserUsedForLocking = "SJPROCESSUSER",
Action<string> logger = null
)
Public Sub New (
caseId As String,
uri As Uri,
instanceId As Guid,
Optional updateUserUsedForLocking As String = "SJPROCESSUSER",
Optional logger As Action(Of String) = Nothing
)
public:
OpenCaseScope(
String^ caseId,
Uri^ uri,
Guid instanceId,
String^ updateUserUsedForLocking = L"SJPROCESSUSER",
Action<String^>^ logger = nullptr
)
new :
caseId : string *
uri : Uri *
instanceId : Guid *
?updateUserUsedForLocking : string *
?logger : Action<string>
(* Defaults:
let _updateUserUsedForLocking = defaultArg updateUserUsedForLocking "SJPROCESSUSER"
let _logger = defaultArg logger null
*)
-> OpenCaseScope
Parameters
- caseId String
- The identifier of the case
- uri Uri
[Missing <param name="uri"/> documentation for "M:Scanjour.Workflow4.ActivityLibrary.OpenCaseScope.#ctor(System.String,System.Uri,System.Guid,System.String,System.Action{System.String})"]
- instanceId Guid
- The instanceid of the instance that owning the lock
- updateUserUsedForLocking String (Optional)
- The user to update the case
- logger ActionString (Optional)
- Logmethod used for writing errors
See Also