Posted: 12 Feb 2019 9:22 EST Last activity: 17 Feb 2021 10:12 EST
pxTransferAssignment OOTB Rule not found exception
Hi! Tell me please what I need to do to OOTB activity pxTransferAssignment can run without any errors?
I write activity with only one step: AssignmentID = "BVEB-LEGAL-WORK-LOANS LS-11873". Maybe I am specifying the wrong format?
I get an error "Failed to find a 'RULE-OBJ-ACTIVITY' with the name 'OPENANDLOCKWORK' that applies to 'BVEB-Legal-Work-Loans-Deal-Signing'. There were 7 rules with this name in the rulebase, but none matched this request. The 7 rules named 'OPENANDLOCKWORK' defined in the rulebase are: 7 unrelated to applies-to class 'BVEB-Legal-Work-Loans-Deal-Signing', for example: 'Assign-'." but all the activities are located in Pera rulesets and all of them are piece of OOTB functionality and not customized.
Activity named OPENANDLOCKWORK Apply-To Assign- class but why is the system looking for it in BVEB-Legal-Work-Loans-Deal-Signing class? Or I need to call pxTransferAssignment from other StepPage and not from work object class?
Also if I try to transfer assignment with parameter AssignmentID (pzInsKey) = "BVEB-LEGAL-WORK-LOANS LS-11873" in runtime pxObjClass = "BVEB-Legal-Work-Loans-Deal-Signing" and I get an error "Failed to find a 'RULE-OBJ-ACTIVITY' with the name 'OPENANDLOCKWORK' that applies to 'BVEB-Legal-Work-Loans-Deal-Signing'"
But if I try to call pxTransferAssignment with parameter AssignmentID = "BVEB-FW-PRIVATE-WORK I-1" and in runtime pxObjClass = "BVEB-FW-Private-Work-Profile-Identify" I get an error "Failed to find a 'RULE-OBJ-ACTIVITY' with the name 'OPENANDLOCKWORK' that applies to 'BVEB-FW-Private-Work-Profile-Identify'. There were 7 rules with this name in the rulebase, but none matched this request. The 7 rules named 'OPENANDLOCKWORK' defined in the rulebase are: 7 unrelated to applies-to class 'BVEB-FW-Private-Work-Profile-Identify', for example: 'Assign-'."
So maybe problem in parameter? Maybe I need to use some different format?
Hi! But I think that I need to set AssignmentID in pzInsKey of my workobject. So tell me please which key i need to set to AssignmentID parameter if I work in activity for Service-SOAP rule. I use Obj-Open method to open my workobject which is stored into Work class. Lokk at the last post at this article from me please and tell me you opinion about. Thanks!
Opening the WorkObject will not sufficient to transfer the assignment. You need to open both, your WorkObject with class inheriting from Work- on page like pyWorkPage and the assignment with class inheriting from Assign- on a page like newAssignPage.
Looking into your provided details, I feel like the WorkObject has been open into newAssignPage directly which is incorrect.
Hi Gayatri and thank you for you help! But it didn't work.
But I think if newAssignPage is the page of Assign- class so maybe I can set a parameter value equal to "ASSIGN-WORKBASKET BVEB-LEGAL-WORK-LOANS LS-11826!DOCUMENTSPACKAGEASSEMBLING" because this is value of pzInsKey field from PC_ASSIGN_WORKBASKET table. And it works, but I don't know how I can manually collect values for this pzInsKey format from pyWorkPage.
Well ok. Maybe... "ASSIGN-WORKBASKET " + .pxLockHandle + " " + .pyID + "!" + pyWorkPage.pxStageHistory(<LAST>).pxProcesses(<LAST>).pxProcessName
What you can say about this? Tell me your opinion on this option please