Skip to main content

I am trying to run FME workbench with input and output file destination and directory. This workbench is copying file from one directory and pasting in another directory.

I tried with different methods of IFMEStringArray but doesn't seem to work and I can't find documentation on the internet.

 

IFMESession createSession = COM.safe.fmeobjects.FMEObjects.createSession();
IFMEWorkspaceRunner createWorkspaceRunner = createSession.createWorkspaceRunner();
IFMEStringArray createStringArray = createSession.createStringArray();
createStringArray.append("C:\\\\test\\\\test.csv");
createStringArray.append("C:\\\\test2");
createWorkspaceRunner.runWithParameters("C:\\\\test\\\\Initialization_VIC_DataSet.fmw", createStringArray);

Above is my code. Can someone please help?

Hi @gaurav14u.

There's a sample Java app that demonstrates use of IFMEWorkspaceRunner in FME_HOME\\fmeobjects\\samples\\Java\\GeometryViewer so that might give you the jump start you need.

There's also a Python IFMEWorkspaceRunner sample if you prefer that route: FME_HOME\\fmeobjects\\samples\\Python\\WorkspaceRunner


Hi @gaurav14u.

There's a sample Java app that demonstrates use of IFMEWorkspaceRunner in FME_HOME\\fmeobjects\\samples\\Java\\GeometryViewer so that might give you the jump start you need.

There's also a Python IFMEWorkspaceRunner sample if you prefer that route: FME_HOME\\fmeobjects\\samples\\Python\\WorkspaceRunner

Nice Documentation @NatalieAtSafe

 


Reply