Agile (MOSC)

MOSC Banner

Groovy workflow Code. agile.api.pc.admin.Workflow vs agile.api.IWorkflow

edited Nov 5, 2019 1:47PM in Agile (MOSC) 2 commentsAnswered

Hello,

I've been working on code to set a default workflow on creation but I'm getting an error No signature of method: com.agile.api.pc.change.Change.setWorkFlow() is applicable for argument types: (com.agile.api.pc.admin.Workflow) values: [Deviations] Possible solutions: setWorkflow(com.agile.api.IWorkflow), getWorkflow(), getWorkflows()

IChange newChange = session.getObject(change.OBJECT_TYPE, change.getValue(1047));   

newChange.setWorkFlow(newChange.getWorkflows()[0]); 

I'm importing com.agile.api.* as well as com.agile.api.IWorkflow just in case, yet every time I define an IWorkflow it gets changed to api.pc.admin.Workflow thus preventing any methods from working. I tried to skip defining and just use the straight

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center