Hello!
I've set up different batches in my Project Setup Station. Inside my batch type properties, I have a registration parameter that I've set in the Workflow tab with the following script: Batch.Properties.Set("MyBatchProperty", "some value");
However, if I try to access inside my custom validation (IRuleContext.Document.Batch.Properties.Get("MyBatchProperty")it returns empty. Any ideas of what I am doing wrong?
Thanks in advance.
I've set up different batches in my Project Setup Station. Inside my batch type properties, I have a registration parameter that I've set in the Workflow tab with the following script: Batch.Properties.Set("MyBatchProperty", "some value");
However, if I try to access inside my custom validation (IRuleContext.Document.Batch.Properties.Get("MyBatchProperty")it returns empty. Any ideas of what I am doing wrong?
Thanks in advance.
コメント
7件のコメント
Are you trying to access batch properties from a rule in document definition or from some other place?
Regards
Timur
I have a custom validation DLL that I call with a script rule. Inside the rule is where I'm trying to get the Batch Properties
Best Regards
If you are trying to get batch properties from document rules you need to access them through Document object Document.Batch.Properties..
Regards
Timur
That's exactly how I am trying to access to the batch properties. It seems to work fine when I try directly on the verification station (uploading images with the Web Scanning), it looks like the problem is only when I am testing uploading images on the Project Setup Station.
Best regards
Note that when you are testing this script in project setup station Batch parameters may not be filled, since they werent processed by the stage where you set these parameters.
Regards
Timur
Best regards
サインインしてコメントを残してください。