Skip to main content

Checking file size

Comments

1 comment

  • David Paras

    This can be achieved in the process flow by using the gateway and applying a java condition at the output of the gateway which will check the File Size and if the File Size is > 0 it will execute the process flow and in case if File Size <= 0 will follow the default path and can be directed to other target like mail notification etc...

    You can implement this by creating context variable using PutContextVar under action in Repository View and providing Variable Value as $$Service.ActivityName.OperationCount$$ and VariableName.Then in gateway use the java condition where you can get the size using the code " Integer.parseInt(context.get("VariableName"));" and then provide the IF condition which will check the File Size and perform the required operation.

    0

Post is closed for comments.