Forum Discussion
I'm facing the same problem, which cannot be resolved by the Finance engine.
The requirement is simple: from a Base Input parent step, lock all descendants that are not Central Form Input, for example. Those Central Form Input correspond to channels that have been handed over to a different user, so the LockWorkflowUnitDescendants should not lock them, but lock the rest. LockWorkflowUnitDescendants uses:
1. WorkflowProfileTypes - This correspond to the type of WF, not the WF Name (e.g., Central Form Input).
2. WorkflowChannelKey - This would be a valid approach like OS_Pizza suggests, but apparently we can only filter on AllChannelInput, NoDataLock, and Standard.
It seems to me that either WorkflowChannelKey is missing channels, or LockWorkflowUnitDescendants is missing a morphism that leverages StepClassificationTypes (like SetWorkflowStatus does).
Has anyone resolved this? I've found additional post on Locking Descendants on Custom Channels all with no resolution.
Thanks!
FOUND THE SOLUTION 🙂
If you check WorkFlow Channel table. It shows the uniuqe id corresponding to the custommadechannel.
Use that unique id to convert into GUID and then use it in the same function directly.
Dim stringToConvert As String = "3d07sf7f-b95e-4ab5-ac0d-021a71de616d"
Dim customchannelid As Guid = Guid.Empty
customchannelid = stringToConvert.XFConvertToGuid(Guid.Empty)
BRApi.Workflow.Locking.LockWorkflowUnitDescendants(si, wfClusterPk, WorkflowProfileTypes.InputImportChild,customchannelid)
Thanks,
Manish
Related Content
- 8 months ago
- 11 months ago
- 3 years ago