user_Fred's profile

2 Messages

 • 

800 Points

Wednesday, March 19th, 2025 3:02 PM

workflowDefinitionApi.exists doesn't seem to work

import com.collibra.dgc.core.api.component.workflow.WorkflowDefinitionApi

def lUUID_WorkflowDefinition = string2Uuid("018faa93-cd51-76fd-b278-674117e56452")

def lb_WorkflowExists = WorkflowDefinitionApi.exists(lUUID_WorkflowDefinition)

gives me an error on definition of .exists .....

Am I missing something ?

error:

Message: org.flowable.common.engine.impl.scripting.FlowableScriptEvaluationException: groovy script evaluation failed: 'javax.script.ScriptException: groovy.lang.MissingMethodException: No signature of method: static com.collibra.dgc.core.api.component.workflow.WorkflowDefinitionApi.exists() is applicable for argument types: (UUID) values: [018faa93-cd51-76fd-b278-674117e56452]

 

93 Messages

 • 

1.2K Points

5 days ago

Hello,

you need to change the line "def lb_WorkflowExists = WorkflowDefinitionApi.exists(lUUID_WorkflowDefinition)"

to "def lb_WorkflowExists = workflowDefinitionApi.exists(lUUID_WorkflowDefinition)"

2 Messages

 • 

800 Points

Thank you very much !

it is the documentation who got me:

"

Interface WorkflowDefinitionApi


public interface WorkflowDefinitionApi

"

Loading...