Custom XCF Example

This is an example custom XCF file for Four Js GAS.

In this example I've set custom environment variables, set the path for the working application directory, specified a specific module and passed in a parameter.

One handy use of an XCF file like this is that I can setup several for example say I have 5 weighbridges and I run a 4Js application to capture the weight etc of each truck as it passes over the weighbridge

I can setup an XCF for each weighbridge passing in the parameter 1, 2, 3, to the same program weighbridge.42r


<APPLICATION Parent="defaultgdc"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="http://www.4js.com/ns/gas/2.20/cfextwa.xsd">
  <EXECUTION AllowUrlParameters="TRUE">
        <ENVIRONMENT_VARIABLE Id="DBDATE">DMY4/</ENVIRONMENT_VARIABLE>
        <ENVIRONMENT_VARIABLE Id="GREDIR">f:\PROGRAM FILES (X86)\FOURJS\GRE\</ENVIRONMENT_VARIABLE>
        <PATH>f:\program files\fourjs\fgl\application\</PATH>
        <MODULE>weighbridge.42r</MODULE>
    <PARAMETERS>
        <PARAMETER>1</PARAMETER>
        </PARAMETERS>
  </EXECUTION>
</APPLICATION>

Comments

Popular posts from this blog

ActiveMQ, easy to use open source message oriented middleware (MOM)

Basic Send Message to MQ with Java and IBM MQ JMS

MySQL Error Invalid Table or Database Name