Find more posts tagged with
Sort by:
1 - 3 of
31
Hi,
actually there is a way
However it involves the Script operator and you do need Java 7 for it.
A quick example on how it can be done:
Marco
actually there is a way

However it involves the Script operator and you do need Java 7 for it.
A quick example on how it can be done:
Regards,
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.3.008">
<context>
<input/>
<output/>
<macros/>
</context>
<operator activated="true" class="process" compatibility="5.3.008" expanded="true" name="Process">
<process expanded="true">
<operator activated="true" class="execute_script" compatibility="5.3.008" expanded="true" height="60" name="Execute Script" width="90" x="179" y="30">
<parameter key="script" value="import java.nio.file.Files; import java.nio.file.Paths; import javax.swing.JOptionPane; JOptionPane.showMessageDialog(null, "File last modified: " + Files.getLastModifiedTime(Paths.get("C:", "Users", "username", "Desktop", "Test.txt")));"/>
</operator>
<portSpacing port="source_input 1" spacing="0"/>
<portSpacing port="sink_result 1" spacing="0"/>
</process>
</operator>
</process>
Marco
Best regards,
Marius