<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/tg/onlinemanual/em000560" xml:lang="en">
   <Header>
      <Title>Rules (tgbrg7500m000)</Title>
      <Keyword type="header" order="d1e2279944">
         <Level1>Rules</Level1>
      </Keyword>
   </Header>
   <GeneralSection>
      <List>
         <ListIntro>The following four rules configure part of the business
		  functions and business processes:</ListIntro>
         <ListItem>Transformation rule</ListItem>
         <ListItem>Consistency rule</ListItem>
         <ListItem>Static condition setting rule</ListItem>
         <ListItem>Parameter setting rule</ListItem>
      </List>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>Rules (tgbrg7500m000)</SectionTitle>
      <Paragraph>To list and maintain all four rules, use the <GUIRef href="/baanerp/tg/brg/tgbrg7500m000" role="session">Rules (tgbrg7500m000)</GUIRef> session.</Paragraph>
      <List>
         <ListIntro>To create a rule, complete the following steps:</ListIntro>
         <ListItem>Click <Emphasis>New</Emphasis>
         </ListItem>
         <ListItem>In the <GUIRef href="/baanerp/tg/brg/tgbrg7500m000#tgbrg700.tyru" role="manual">Rule Type</GUIRef> field, select the type of rule that you
		  want to create.</ListItem>
         <ListItem>In the <GUIRef href="/baanerp/tg/brg/tgbrg7500m000#tgbrg700.rule" role="manual">Rule</GUIRef> field, specify a name or code for the
		  Rule.</ListItem>
         <ListItem>Start the text editor and create the IF-part of the rule, click <GUIRef href="/baanerp/tg/brg/tgbrg7500m000#exec.user.0" role="manual">Rule Condition</GUIRef>.</ListItem>
         <ListItem>After the IF logical operator, in the text editor, specify one
		  or more business functions.</ListItem>
      </List>
      <Note>
         <SectionTitle>Note</SectionTitle>
         <Paragraph>You must leave a space between the operators and the
		  operands, such as: <Code>BF, 1</Code>.</Paragraph>
      </Note>
      <List>
         <ListItem>Click <GUIRef href="/baanerp/tg/brg/tgbrg1110s000#exec.user.0" role="manual">Save</GUIRef>
         </ListItem>
      </List>
      <Paragraph>To zoom to lists of business functions, business processes, and
		static conditions you can include in the rule condition, on the <Emphasis>Options</Emphasis> menu in the text editor, click <Emphasis>Start
		Zoomsession</Emphasis>. This zoom session can also be used to automatically
		insert statements.</Paragraph>
      <Note>
         <SectionTitle> Note</SectionTitle>
         <Paragraph>If the <Code>IF</Code>-part of an expression is empty, the rule is always valid.</Paragraph>
      </Note>
      <List>
         <ListIntro>After you have defined the IF-part of a rule, you must define
		  the <Code>THEN</Code>-part. To do this, complete the following step:</ListIntro>
         <ListItem>To create the <Code>THEN</Code> part of the expression in one of the following Baan sessions, click <Code>THEN</Code>-part: <List>
               <ListItem>The <GUIRef href="/baanerp/tg/brg/tgbrg7117m000" role="session">Set Parameters by Rule (tgbrg7117m000)</GUIRef> session.</ListItem>
               <ListItem>The <GUIRef href="/baanerp/tg/brg/tgbrg7127m000" role="session">Select Business Processes by Rule (tgbrg7127m000)</GUIRef> session.</ListItem>
               <ListItem>The <GUIRef href="/baanerp/tg/brg/tgbrg7137m000" role="session">Set Static Conditions by Rule (tgbrg7137m000)</GUIRef> session.</ListItem>
            </List>
         </ListItem>
      </List>
      <Paragraph>It depends on the type of rule as to which of the ERP Enterprise sessions is
		started.</Paragraph>
      <Paragraph>In the case of consistency rules, you cannot specify the THEN
		part in a separate ERP Enterprise session. Instead, you must specify the <Emphasis>THEN</Emphasis> part in the
		text editor.</Paragraph>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>Types of rules</SectionTitle>
      <Paragraph>This section explains the different kind of rules, and includes
		examples of how to illustrate the syntax that must be used.</Paragraph>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>Consistency rule</SectionTitle>
      <Paragraph>This type of rule is an expression that contains a combination
		of business functions on the basis of which one or more business functions must
		be included in the business model.</Paragraph>
      <ExampleSection>
         <SectionTitle>Example</SectionTitle>
         <Paragraph>
            <Code>IF &lt;BF, BF5, Sales&gt;</Code>
         </Paragraph>
         <Paragraph>
            <Code>THEN &lt;BF, BF12, Sales Order Management&gt;</Code>
         </Paragraph>
         <Paragraph>If the Sales business function is part of the Business
		  Function Model, then the Sales Order Management business function must be part
		  of the Business Function Model.</Paragraph>
      </ExampleSection>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>Parameter setting rule</SectionTitle>
      <Paragraph>This type of rule determines the value of parameters. The value
		is determined on the basis of a combination of business functions, business
		processes/static conditions.</Paragraph>
      <ExampleSection>
         <SectionTitle>Example</SectionTitle>
         <Paragraph>
            <Code>IF &lt;BF, BF3, Inventory Location Control&gt;</Code>
         </Paragraph>
         <Paragraph>
            <Code>THEN</Code>
         </Paragraph>
         <Paragraph>
            <Code>Parameter</Code>
         </Paragraph>
         <Paragraph>
            <Code>Use ILC Yes</Code>
         </Paragraph>
         <Paragraph>When the Inventory Location Control business function is in
		  the Business Function Model, then the Use ILC parameter must receive the value <Code>Yes</Code>.</Paragraph>
      </ExampleSection>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>Transformation rule</SectionTitle>
      <Paragraph>A transformation rule is an expression that imposes a unilateral
		dependency on business processes in relation to business functions.</Paragraph>
      <Paragraph>If specific business functions are present in a business model,
		the business processes related to these business functions through the
		transformation rules you created are automatically incorporated in these
		business models.</Paragraph>
      <Paragraph>This rule is used to select certain business processes from the
		repository and copy them to the Business Process Model of the business model if
		the rule condition is true.</Paragraph>
      <ExampleSection>
         <SectionTitle>Example</SectionTitle>
         <Paragraph>
            <Code>If &lt;BF, BF5, Sales&gt;</Code>
         </Paragraph>
         <Paragraph>
            <Code>THEN</Code>
         </Paragraph>
         <Paragraph>
            <Code>SBP 033 Sales</Code>
         </Paragraph>
         <Paragraph>If the Sales business function is in the Business Function
		  Model, then the Sales business process must be incorporated in the Business
		  Process Model.</Paragraph>
      </ExampleSection>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>Static Condition Setting rule</SectionTitle>
      <Paragraph>This rule determines the value of static conditions depending on
		the business functions used in the business model. The values of the static
		conditions are used to choose between the arrows leaving control activities in
		business processes. If the defined rule evaluates to true, the static
		conditions based on this rule are set to <GUIRef href="/baanerp/tg/domains/yeno#yes" role="option">Yes</GUIRef>.</Paragraph>
      <Paragraph>When leaving a control activity, some arrow(s) must be followed
		if the static condition is set to <GUIRef href="/baanerp/tg/domains/yeno#yes" role="option">Yes</GUIRef>; the
		other arrow(s) must be followed if the static condition is set to <GUIRef href="/baanerp/tg/domains/yeno#no" role="option">No</GUIRef>.</Paragraph>
      <Paragraph>The conditions are static because the rules relate to
		implementation decisions, which are usually only made when a new
		implementation/optimization phase is started. They do not relate to operational
		decisions, which are made each time a process is carried out.</Paragraph>
      <ExampleSection>
         <SectionTitle>Example</SectionTitle>
         <Paragraph>If <Code>&lt;BF, BF7, Special Pricing&gt;</Code>
         </Paragraph>
         <Paragraph>
            <Code>THEN</Code>
         </Paragraph>
         <Paragraph>Use Special Pricing <Code>Yes</Code>
         </Paragraph>
         <Paragraph>If the Special Pricing business function is in the Business
		  Function Model, then the Use Special Pricing static condition should have the
		  value <GUIRef href="/baanerp/tg/domains/yeno#yes" role="option">Yes</GUIRef>.</Paragraph>
      </ExampleSection>
      <Paragraph>If you want to create a static condition setting rule, the
		static conditions must first have been defined in the <GUIRef href="/baanerp/tg/brg/tgbrg5580m000" role="session">Static Conditions (tgbrg5580m000)</GUIRef> session.</Paragraph>
      <List>
         <ListIntro>To define static conditions and static condition setting
		  rules, use one of the following two ways. Both are possible if one of them is
		  used consistently:</ListIntro>
         <ListItem>A static condition is set to <GUIRef href="/baanerp/tg/domains/yeno#no" role="option">No</GUIRef> by default. If a
		  rule related to that static condition is met, the static condition is set to <GUIRef href="/baanerp/tg/domains/yeno#yes" role="option">Yes</GUIRef>. Because
		  this method has been used for the models in Baan IVc, the default values of the static conditions is always <GUIRef href="/baanerp/tg/domains/yeno#no" role="option">No</GUIRef>. The <GUIRef href="/baanerp/tg/brg/tgbrg7137m000" role="session">Set Static Conditions by Rule (tgbrg7137m000)</GUIRef> session only includes the
		  conditions that must be set to <GUIRef href="/baanerp/tg/domains/yeno#yes" role="option">Yes</GUIRef>.</ListItem>
         <ListItem>A static condition is set to <GUIRef href="/baanerp/tg/domains/yeno#yes" role="option">Yes</GUIRef> by
		  default. If a rule is met, the static condition is set to <GUIRef href="/baanerp/tg/domains/yeno#no" role="option">No</GUIRef>. In this
		  case the default values of the static conditions are always <GUIRef href="/baanerp/tg/domains/yeno#yes" role="option">Yes</GUIRef>, and the <GUIRef href="/baanerp/tg/brg/tgbrg7137m000" role="session">Set Static Conditions by Rule (tgbrg7137m000)</GUIRef> session only includes the
		  conditions that must be set to <GUIRef href="/baanerp/tg/domains/yeno#no" role="option">No</GUIRef>. Although
		  this is a possible option, the first possibility is used as a
		  standard.</ListItem>
      </List>
   </GeneralSection>
</ManualTopic>