Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » ETL(Help required to generate the output meta-model)
ETL [message #1777011] Thu, 23 November 2017 15:16 Go to next message
Qamar uz Zaman is currently offline Qamar uz ZamanFriend
Messages: 10
Registered: November 2017
Junior Member
Hello,
I want to generate a resultant model, the image is attached, from the following etl code.

rule UCbitval2KSbitval
transform uc:UseCase
to ks:KripkeStructure!KripkeStructure {

ks.lengthofbitvector = uc.lengthofbitvector;//lengthofbitvector=2

ks.kripkestructureInputset = uc.usecaseInputset;


ks.StateSet.statesetInitialState.name="initial_state";
for( count in ks.lengthofbitvector){
ks.StateSet.statesetInitialState.BitLabel.Bit[count].value = false;
}


var tempState: new KripkeStructure!State;
tempState.name = "state";
for( count in ks.lengthofbitvector){
tempState.BitLabel.Bit[count].value = false;
}

ks.kripkestructureStateset.State.add(tempState);
delete tempState;


}



index.php/fa/31373/0/
  • Attachment: img.PNG
    (Size: 7.90KB, Downloaded 141 times)
Re: ETL [message #1777267 is a reply to message #1777011] Mon, 27 November 2017 18:15 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1589
Registered: July 2009
Location: York, UK
Senior Member

Hi,

Please see [1] for instructions on how to prepare and submit a minimal example.

Cheers,
Dimitris

[1] https://www.eclipse.org/epsilon/doc/articles/minimal-examples/
Re: ETL [message #1777268 is a reply to message #1777267] Mon, 27 November 2017 18:56 Go to previous messageGo to next message
Qamar uz Zaman is currently offline Qamar uz ZamanFriend
Messages: 10
Registered: November 2017
Junior Member
Thank you, things get started.
Can you assist to resolve the error, occurred in following example snippet.

var outputset : Map;
outputset.put("group",1);
---
var val : Integer = outputset.get("group");
val = val +1;

Following error encountered:


Internal error: java.lang.NullPointerException
at org.eclipse.epsilon.eol.execute.operations.contributors.AnyOperationContributor.asInteger[AnyOperationContributor.java:208]
at sun.reflect.NativeMethodAccessorImpl.invoke0[Native Method]
at sun.reflect.NativeMethodAccessorImpl.invoke[Unknown Source]
at sun.reflect.DelegatingMethodAccessorImpl.invoke[Unknown Source]
at java.lang.reflect.Method.invoke[Unknown Source]
at org.eclipse.epsilon.eol.util.ReflectionUtil.executeMethod[ReflectionUtil.java:187]
at org.eclipse.epsilon.eol.util.ReflectionUtil.executeMethod[ReflectionUtil.java:163]
at org.eclipse.epsilon.eol.execute.introspection.java.ObjectMethod.execute[ObjectMethod.java:49]
at org.eclipse.epsilon.eol.dom.OperationCallExpression.execute[OperationCallExpression.java:127]
at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST[ExecutorFactory.java:97]
at org.eclipse.epsilon.eol.dom.EagerOperatorExpression.execute[EagerOperatorExpression.java:16]
at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST[ExecutorFactory.java:97]
at org.eclipse.epsilon.eol.dom.ExpressionInBrackets.execute[ExpressionInBrackets.java:21]
at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST[ExecutorFactory.java:97]
at org.eclipse.epsilon.eol.dom.IfStatement.execute[IfStatement.java:40]
at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST[ExecutorFactory.java:97]
at org.eclipse.epsilon.eol.dom.StatementBlock.execute[StatementBlock.java:49]
at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST[ExecutorFactory.java:97]
at org.eclipse.epsilon.eol.dom.ForStatement.execute[ForStatement.java:90]
at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST[ExecutorFactory.java:97]
at org.eclipse.epsilon.eol.dom.StatementBlock.execute[StatementBlock.java:49]
at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST[ExecutorFactory.java:97]
at org.eclipse.epsilon.eol.dom.IfStatement.execute[IfStatement.java:47]
at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST[ExecutorFactory.java:97]
at org.eclipse.epsilon.eol.dom.StatementBlock.execute[StatementBlock.java:49]
at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST[ExecutorFactory.java:97]
at org.eclipse.epsilon.eol.dom.ForStatement.execute[ForStatement.java:90]
at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST[ExecutorFactory.java:97]
at org.eclipse.epsilon.eol.dom.StatementBlock.execute[StatementBlock.java:49]
at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST[ExecutorFactory.java:97]
at org.eclipse.epsilon.eol.dom.ExecutableBlock.executeBlockOrExpressionAst[ExecutableBlock.java:94]
at org.eclipse.epsilon.eol.dom.ExecutableBlock.execute[ExecutableBlock.java:108]
at org.eclipse.epsilon.eol.dom.ExecutableBlock.execute[ExecutableBlock.java:137]
at org.eclipse.epsilon.eol.dom.ExecutableBlock.execute[ExecutableBlock.java:81]
at org.eclipse.epsilon.etl.dom.TransformationRule.executeSuperRulesAndBody[TransformationRule.java:221]
at org.eclipse.epsilon.etl.dom.TransformationRule.transform[TransformationRule.java:175]
at org.eclipse.epsilon.etl.strategy.FastTransformationStrategy.executeTransformations[FastTransformationStrategy.java:165]
at org.eclipse.epsilon.etl.strategy.FastTransformationStrategy.transformModels[FastTransformationStrategy.java:157]
at org.eclipse.epsilon.etl.EtlModule.execute[EtlModule.java:133]
at org.eclipse.epsilon.eol.dt.launching.EpsilonLaunchConfigurationDelegate.launch[EpsilonLaunchConfigurationDelegate.java:79]
at org.eclipse.epsilon.eol.dt.launching.EpsilonLaunchConfigurationDelegate.launch[EpsilonLaunchConfigurationDelegate.java:56]
at org.eclipse.debug.internal.core.LaunchConfiguration.launch[LaunchConfiguration.java:885]
at org.eclipse.debug.internal.core.LaunchConfiguration.launch[LaunchConfiguration.java:739]
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch[DebugUIPlugin.java:1039]
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run[DebugUIPlugin.java:1256]
at org.eclipse.core.internal.jobs.Worker.run[Worker.java:55]

at (D:\TransformWorkSpace\UCASKSTransformer\UC2KStransformrules.etl@144:11-144:55)
at (D:\TransformWorkSpace\UCASKSTransformer\UC2KStransformrules.etl@144:11-144:64)
at (D:\TransformWorkSpace\UCASKSTransformer\UC2KStransformrules.etl@144:10-144:65)
at (D:\TransformWorkSpace\UCASKSTransformer\UC2KStransformrules.etl@144:6-149:52)
at (D:\TransformWorkSpace\UCASKSTransformer\UC2KStransformrules.etl@142:70-151:6)
at (D:\TransformWorkSpace\UCASKSTransformer\UC2KStransformrules.etl@142:5-151:6)
at (D:\TransformWorkSpace\UCASKSTransformer\UC2KStransformrules.etl@128:49-154:5)
at (D:\TransformWorkSpace\UCASKSTransformer\UC2KStransformrules.etl@128:4-154:5)
at (D:\TransformWorkSpace\UCASKSTransformer\UC2KStransformrules.etl@83:38-158:4)
at (D:\TransformWorkSpace\UCASKSTransformer\UC2KStransformrules.etl@83:3-158:4)
at (unknown@0:0-0:0)

although the following line prints "Integer"
outputsetget("startbit").type().println();
Re: ETL [message #1777272 is a reply to message #1777268] Mon, 27 November 2017 22:25 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1589
Registered: July 2009
Location: York, UK
Senior Member

Hi,

Please consider following the instructions in my previous email. Without a minimal example we can use to reproduce the issues you're encountering it's unlikely that we'll be able to help.

Cheers,
Dimitris
Re: ETL [message #1777386 is a reply to message #1777272] Wed, 29 November 2017 05:39 Go to previous message
Qamar uz Zaman is currently offline Qamar uz ZamanFriend
Messages: 10
Registered: November 2017
Junior Member
Hello,
Thank you, resolved the issue by consulting the Epsilon book available in the documentation section.

Warm Regards,
Qamar
Previous Topic:EMF to RELATIONAL transformation using ETL and EMC-JDBC
Next Topic:Populate model with values stored written in a file
Goto Forum:
  


Current Time: Sun Sep 23 14:54:10 GMT 2018

Powered by FUDForum. Page generated in 0.01648 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top