cancel
Showing results for 
Search instead for 
Did you mean: 

Expressions in startevent's timecycle

gwaptiva
Champ in-the-making
Champ in-the-making
Hi,

I tried setting the value of the timecycle element on a startEvent to an expression, but the parser chokes on the $ sign. Is there another way of taking an external value for the cycle rather than hardcoding it in the process definition/xml?

Thinking of something like


<startEvent id="start">
   <timerEventDefinition>
      <timeCycle>${cronFromExternalSource}</timeCycle>
   </timerEventDefinition>
</startEvent>

Thanks in advance for any suggestions
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
The timecycle is parsed as an expression, so it should work. Could you create a simple unit test to demonstrate the problem?

gwaptiva
Champ in-the-making
Champ in-the-making
Before I do, two additional bits of information that I (*blush*) omitted from the original post.

Firstly, I'm using version 5.4 and secondly, the startEvent is the start of another process's CallActivity calledElement. I mention the latter specifically because the documentation states:
Note: a subprocess cannot have a timer start event.

If this is then also valid for CalledActivity 'subprocesses' I know where I went wrong.

jbarrez
Star Contributor
Star Contributor
Yes indeed, that's also the case for callactivities.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.