Skip to main content

Hello,

 

In K2 five workflow Designer, which porperty of a client task should be set, in order to retreve expected duration using K2 API?

By K2 API, i mean WorklistItem objects properties, such as ActivityInstanceDestination.ExpectedDuration or EventInstance.ExpectedDuration.

I used Deadline and Due date, but those are not setting up those properties.

 

Thanks

Hi  @ZoltanM;


 


As for the out of box k2 five,please vote as feature request here---similar idea created already(https://ideas.k2.com/ideas/APIT-I-914), also read through  @khanh 's workaround(https://community.k2.com/t5/K2-Five/Workflow-Tasks-Expected-Duration/td-p/103136).


 


See attached files that might be useful working with this topic moving forward.


 


Cheers Hope it helps.


 


Thanks & Regards;


Widson.


Hello @Widson,

 

I don't see what is the solution in @khanh's workaround, except to request a feature...

Also, thanks for the documentation and samples.

More or less, I am aware of the structure of the K2 API described in that file that you attached, but I still don't see how to set up EventInstance's expected duration in K2 Five.

EventInstance has a property ExpectedDuration, and i would like to set it from K2 Workflow Designer, so I could use it.

Any idea how to do that?

 

Regards,

Zoltan


Hi  @ZoltanM;


 


For this Question:-I don't see what is the solution in @khanh's workaround-->i meant a "suggestion" not workaround ofcuz sorry for my wrong wording.


 


From what i know expected duration from 4.7 is replaced by Due Date in k2 Five please see this refference(https://help.k2.com/kb002726).


This will show you on how to use the Due Date in k2 five workflow designer refferenced here(https://help.k2.com/onlinehelp/k2five/userguide/5.3/default.htm#K2-Workflow-Designer/Use/Toolbox/Basic/Task/TaskTabs/01Task/Task-Tab.htm#DueDateTask).


 


Regards;


Widson. 


 


Thanks for the answer.
As i said in the initial post, i set up Due Date, but WorklistItem in K2 API is not reflecting that value in any of the properties.
Maybe, the more correct question is how to retrieve Due Date using K2 API?
Any suggestion on this?
The answer would be the solution for this ticket.

Regards,
Zoltan
Due Date is the solution.
WorklistItem has a property DueDate, so it can be used even to calculate ExpectedDuration if needed.

Thanks for the help,
Zoltan

Hi  @ZoltanM;


 


Glad i could point you to the better direction, however for future reference if you need information about workflow api, and information regarding worklist items retrieval please dive into this formal documentaion(https://help.k2.com/onlinehelp/k2five/devref/5.3/default.htm#Runtime/WorkflowAPIs.htm%3FTocPath%3DRuntime%2520APIs%2520and%2520Services%7CWorkflow%7C_____0).


 


Enjoy your weekend!


 


Kind regards;


Widson.


Reply