‎04-04-2023 08:10 PM
Hi,
I'm currently using this code to automatically instantiate a validation workflow on a newly created Org process in V4 and it's working fine :
----------------------------------------------------------------------------------------------------------------------------------------------
'Instanciate workflow
Dim WorkflowInstanceCreator
Set WorkflowInstanceCreator = mgRoot.WorkflowEngine.WorkflowInstanceCreator(omgWorkflowDefinition)
Dim mgobjWorkflowInstanceDescription
Set mgobjWorkflowInstanceDescription = WorkflowInstanceCreator.Instanciate
---------------------------------------------------------------------------------------------------------------------------------------------
I'm testing the same code in V5 CP4 but it's throwing an error at the last line.
Is the function still available in V5 ?
Thank you
Mehdi
‎06-04-2023 05:51 PM
Hello Mehdi,
I am not an expert in this area, but I am trying my best to find some information that could help you. Your code appears to be written in VBA, so my apologies if what I say next is Null & Void because I believe this to be a java resource. But I suppose it could be helpful for context?
Is the error being produced informational?
I found this in the API
Here is the link I used > https://doc.mega.com/javadoc/mj_wfeng/com/mega/modeling/workflowengine/api/WorkflowInstanceCreator.h...
I hope that this is somewhat helpful, and apologize if it is not. 🙂
Kind regards,