Skip to main content

I have an activity with a client event. Directly before this event there is a smart object event which use the ActivityInstanceDestination - Start Date. This works fine. Directly after the client event there is a similar smart object event which use the ActivityInstanceDestination - Finish Date. But this date isn't the date/time the client task is finished. I can't find out - what it is ... someone any idea.


I need the Finish Date and I want fill it within the same activity as the client event is - after this activity of course the workflow splits in branches (outcomes).


I try the EventInstanceStartDate also - but this isn't available.


Thx for any help.

Basically, Are you looking for the start and end times of the client event?

Yes - this is what I want to have

I think probably the reason why ActivityInstanceDestination - Finish Date doesn't contain the date you expect is because your SmartObject event is within the same activity and the activity hasn't finished yet.


You should be able to get the finish time of your client event by adding a server code event after it and using code like this:


K2.ActivityInstanceDestination.EventInstancessindex].FinishDate


Where index is the zero-based index of the client event within the activity.  Once you get this date you could put it in an activity level data field for use in your SmartObject event.


David


 


 


OK - seems so there is no other way as an additional server event - I wonder whats the difference between the Activity Finish Date and ActivityInstanceDestination Finish Date, if the Destination Finish Date is filled also when the current activity isn't longer available and so this field is never useable over the Context Browser.


Because I need an activity level data now to store the date I use following code:


K2.ActivityInstanceDestination.DataFieldsd

"currentDateTime"].Value = String.Format("{0:M/d/yyyy HH:mm}", DateTime.Now);


Reply