|
Re: if else statment in a rule transformation [message #1067648 is a reply to message #1067638] |
Tue, 09 July 2013 19:32 |
|
Op 09-07-13 20:16, achraf lyazidi schreef:
> hi everyone, i want to make an if/else statement in one of my rules, the idea
> is if(A) i transform from a to b, and else i transform from a to c.
The "if" condition normally goes in the "from" part of your rule:
rule task {
from a : modeler_bpmn!task
(
a.documentation='middle'
)
to
b : bpmn5!Task
(
name <- a.name,
incomingRTT <- a.incoming,
outgoingLTT <- a.outgoing
)
}
rule firsttask {
from a : modeler_bpmn!task
(
a.documentation<>'middle'
)
to
c : bpmn5!FirstTask
(
name <- a.name,
incomingConnections <- a.incoming,
outgoingLTT <- a.outgoing
)
}
Cheers,
Dennis
Cheers,
Dennis
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02090 seconds