Hi,
I am trying to capture local date time to a variable using custom action in java.
It is throwing exception at local date time class
I cannot import date time packages for the same, so how to implement various packages for the same in any custom action.
What is the other solution to print local date and time.
This is my code:
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://web-harvest.sourceforge.net/schema/1.0/config" scriptlang="groovy">
<robotics-flow>
<robot driver="universal" close-on-completion="true" start-in-private="true">
<capability name="SEARCH_ALL_WINDOWS" value="true" />
<script><![CDATA[
import com.workfusion.studio.rpa.recorder.api.internal.representation.*
import com.workfusion.studio.rpa.recorder.api.*
import com.workfusion.studio.rpa.recorder.api.types.*
import com.workfusion.studio.rpa.recorder.api.custom.*
import static com.workfusion.studio.rpa.recorder.api.RandomValues.CharacterSet.*
def customscript()
{
LocalDateTime dtnow = LocalDateTime.now();
}
customscript()
println dtnow
]]></script>
</robot>
</robotics-flow>
<export include-original-data="true"/>
</config>