Topic
  • 1 reply
  • Latest Post - ‏2014-07-15T10:25:26Z by MoorthyR
MoorthyR
MoorthyR
2 Posts

Pinned topic RSA Transformation API - ISSUE

‏2014-07-11T07:42:13Z |

Hi Expert,

I have tried to run a transformation from below code. When i run it, it shows me an error

I'm trying to load service.tc which is not present in current workspace.

"java.io.FileNotFoundException: The transformation configuration file /RSA_NewWorkSpace/UML_MODEL_POC/service.tc does not exist. Verify the correct file path was specified."Below are the code snippet. Pls help.

IPath path = new Path("D://RSA_NewWorkSpace//UML_MODEL_POC/service.tc");

IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path);

System.out.println("file >> "+file);

ITransformConfig config = TransformConfigUtil.loadConfiguration(file);

System.out.println("inside testExecute 3 config >> "+config);

IStatus status = TransformController.getInstance().execute(config, null, false, null);

System.out.println("status >> "+status);

 

 

Debug log:

tested start -->

inside testExecute 2

ResourcesPlu

file >> L/RSA_NewWorkSpace/UML_MODEL_POC/service.tc

IOException >>java.io.FileNotFoundException: The transformation configuration file /RSA_NewWorkSpace/UML_MODEL_POC/service.tc does not exist. Verify the correct file path was specified.

tested end -->

 

Updated on 2014-07-11T14:20:41Z at 2014-07-11T14:20:41Z by MoorthyR
  • MoorthyR
    MoorthyR
    2 Posts

    Re: RSA Transformation API - ISSUE

    ‏2014-07-15T10:25:26Z  

    Could you please help me?

    is it possible to refer transformation file outside of current workspace?

     

    otherwise

     

    is it possible to run mulitiple transformation(.tc) together and log the error in log file for the failed tc?

     

    Thanks in advance.

    Updated on 2014-08-22T06:57:03Z at 2014-08-22T06:57:03Z by MoorthyR