コミュニティ

Batch properties not recognized in a custom validation

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.

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

7件のコメント

  • Avatar
    Permanently deleted user
    It looks like my After document created Event Handler is throwing exceptions. That might be causing the issue
    0
  • Avatar
    Permanently deleted user
    Hello,

    Are you trying to access batch properties from a rule in document definition or from some other place?

    Regards
    Timur







    0
  • Avatar
    Permanently deleted user
    Hi 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
    0
  • Avatar
    Permanently deleted user
    Hello

    If you are trying to get batch properties from document rules you need to access them through Document object Document.Batch.Properties..


    Regards
    Timur
    0
  • Avatar
    Permanently deleted user
    Hi 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
    0
  • Avatar
    Permanently deleted user
    Hello,

    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
    0
  • Avatar
    Permanently deleted user
    Thank you for the clarification Timur.

    Best regards
    0

サインインしてコメントを残してください。