Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Batch Management

HistHookExpression

  • Last UpdatedJun 06, 2017
  • 1 minute read

Description:

The HistHookExpression function is called whenever the batch evaluates the transition expression during batch execution. When this function is called, it adds an entry in the TransitionExpression table of the BatchHistory database. This can be called multiple times per expression because an expression can have unlimited length.

Syntax

char* HistHookExpression(char* szBatchServerName, char* szBatchKey, H_CLB* pCLB, char* szTransitionKey, H_Expression* pExpression)

Parameters:

  • szBatchServerName

    • Type: char*

    • Description: Contains the name of the batch server configured in system parameters

  • szBatchKey

    • Type: char*

    • Description: Contains the unique identification string for the batch

  • pCLB

    • Type: H_CLB*

    • Description: Points to the structure that contains the information of campaign, lot, and batch

  • szTransitionKey

    • Type: char*

    • Description: Contains the unique identification string for a transition

  • pExpression

    • Type: H_Expression*

    • Description: Points to the structure of H_Expression that refers to the TransitionExpression table of the BatchHistory database

Return Type: char*

This function returns an insert query for the TransitionExpression table of the BatchHistory database. The returned string must remain allocated (that is, it must return a static buffer).

In This Topic
TitleResults for “How to create a CRG?”Also Available in