You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following henshin code I create two nodes in the graph with an edge to the given EventType.
// Is called by RunTransformation.javaunitdoFSM(INeventTypeName1:EString, INeventTypeName2:EString, VARfirstState: State) {
createEvent(eventTypeName1)
createEvent(eventTypeName2)
}
rulecreateEvent(INeventTypeName:EString){
graph {
preservenoderuntimeState:CurrentStatepreservenodeevenType: EventType {
name = eventTypeName
}
createnodeevent:Event {}
edges[(createevent->evenType:type),
(createruntimeState->event:eventQueue)]
}
}
Since the following code sets the two parameters I would expect to create two events, one of type "E_NEXT" and one of type "E_LONG". However, due to a wrong parameter mapping, both events are of type "E_LONG" (the last parameter that is set).
This is the java file which sets the parameters and calls the unit:
I tried different parameter kinds but this didn't change the outcome.
This is not a problem of the textual henshin syntax, instead the problem seems to be the handling of ParameterMappings in the method createApplicationFor(Unit subUnit).
It seems like the last (fitting) ParameterMapping is selected, instead of the right one for the specific unit call.
The text was updated successfully, but these errors were encountered:
In the following henshin code I create two nodes in the graph with an edge to the given EventType.
Since the following code sets the two parameters I would expect to create two events, one of type "E_NEXT" and one of type "E_LONG". However, due to a wrong parameter mapping, both events are of type "E_LONG" (the last parameter that is set).
This is the java file which sets the parameters and calls the unit:
Expected parameter mappings:
The actual parameter mappings apparently:
Troubleshooting approaches:
This is not a problem of the textual henshin syntax, instead the problem seems to be the handling of ParameterMappings in the method createApplicationFor(Unit subUnit).
It seems like the last (fitting) ParameterMapping is selected, instead of the right one for the specific unit call.
The text was updated successfully, but these errors were encountered: