Can't get a value from a variable [message #1804152] |
Tue, 19 March 2019 09:21  |
Eclipse User |
|
|
|
Hello,
I'm having a problem to get a value from a variable. My "reduced" grammar is this:
Trigger:
{Trigger} 'trigger' (manual=MANUAL)? | ('cron' cronExpression=STRING)?
BEGIN
TriggerDeclaration
END
;
And when I'm trying to get the value of cronExpression I'm receive a null value. (yes, when I'm creating a script in my DSL I specify the value).
Here you can see how I'm trying to get the value in generator:
«IF p.elements.filter(Pipeline).get(0).repo.filter(RepositoryDeclaration).get(0).repoComp.get(0).cronExpression!==null»
"timer": {
"only_on_changes": false
},
«ENDIF»
And here you can find a example of my DSL:
trigger cron "0 * * ? * *"
git "https://github.com/...
[Updated on: Tue, 19 March 2019 09:28] by Moderator
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04440 seconds