Grooper 21.00.0082 is available as of 12-12-2023! Check the Downloads Discussion for the release notes and to get the latest version.
Grooper 23.00.0044 is available as of 06-20-2024! Check the Downloads Discussion for the release notes and to get the latest version.
Grooper 23.1.0026 is available as of 09-16-2024! Check the Downloads Discussion for the release notes and to get the latest version.
Grooper 24.0.0013 is available as of 10-04-2024! Check the Downloads Discussion for the release notes and to get the latest version.
Programmatic creation of a new Batch
Tony
Posts: 23 ✭
If during an export script I check my database and find that a record already exists I will not want to save it. I will instead want to write that document (PDF) to a different Batch job called DocumentExceptionBatch. How do I create the Batch programmatically and move documents into it?
Any assistance is appreciated.
Tagged:
0
Best Answer
-
[Deleted User] Posts: 0 adminOne solution would be to flag the documents once you find out they already exist in your destination. Then you could have a "Spawn Batch" activity to move any flagged documents to another batch and/or process.6
Answers
This just might do what I need. I'm off to give it a try . . .
Thank you for responding. I will let you know how it works out.
Here a code snippet I'm using from another activity. It's not finished(you can tell by the comments in it) but it should get you on the right path for creating one in your script.
'Created at the beginning of a class declaration
'some Class code follows to the end of the class
bch.Status = GrooperDb.ProcessingStatus.Ready
'End of subroutine