Posted: Wed Jul 06, 2005 6:19 am Post subject: How do I get the VALID_FROM time for a template
Newbie
Joined: 06 Jul 2005 Posts: 1
I have been trying to get the valid time from when the associated process template is valid, through the API. I know it has been set as I checked in the fdl and it had a VALID_FROM time. Unfortunately when I try use the command item.processInstance().validFromTime().getTime() ,I get the time the item was created rather than the time that the process template was valid from.
the API call is correct, the process instance also contains the template's ValidFromTime. The template actually does not have the ValidFromTime that you expect. If you specify a ValidFromTime that is located in the past, the ValidFromTime is set to the current time during import. This allows you to update an existing process template with the same ValidFromTime. The new template version gets precedence because it has a newer ValidFromTime setting.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum