Now you can create a process and update its state anytime, anywhere. see tests case
/* * Only a specific user can view this process. You can implement IUserGroupContributor yourself * to specify more than one user to view this process, e.g. OrganizationUnitUserGroupContributor. */ var groupKey = await _userIdUserGroupContributor.CreateGroupKeyAsync(adminUser!.Id.ToString()); // Create a process. var process1 = await _processManager.CreateAsync( new CreateProcessModel( processName: "MyProcess", correlationId: null, // If null, this value will be auto-set to the value of the Id of the Process entity. groupKey: groupKey ), Clock.Now); // When your process is moving forward. await _processManager.UpdateStateAsync(process1, new UpdateProcessStateModel( stateUpdateTime: Clock.Now, stateName: "Succeeded")); // Or add more information. await _processManager.UpdateStateAsync(process1, new UpdateProcessStateModel( stateUpdateTime: Clock.Now, stateName: "Succeeded", actionName: "Export is done!", stateFlag: ProcessStateFlag.Success, // If null, use the default value you defined. stateSummaryText: "Congratulations! Export successful."));
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4