<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/tg/onlinemanual/000055" xml:lang="en">
   <Header>
      <Title>subapplication modeling</Title>
      <Keyword type="header" order="d1e1967036">
         <Level1>subapplication</Level1>
      </Keyword>
      <Keyword type="header" order="d1e1967039">
         <Level1>modeling</Level1>
      </Keyword>
   </Header>
   <GeneralSection ID="4">
      <Paragraph>If you model
		subapplications, keep in mind that you must only model subapplications when the <Link href="/baanerp/tg/glossary/glossary#000034" role="glossary">role</Link> or the authorization
		that you want to link or assign to the subapplications is different from the
		role or authorization linked to the <Link href="/baanerp/tg/glossary/glossary#000308" role="glossary">application</Link> that is linked
		to the activity.</Paragraph>
      <List>
         <ListItem> 
            <Link href="#a" role="internal">Linking of subapplications</Link>
         </ListItem>
         <ListItem> 
            <Link href="#b" role="internal">Roles and authorization</Link>
         </ListItem>
         <ListItem> 
            <Link href="#c" role="internal">The use of a file with subapplications</Link>
         </ListItem>
      </List>
   </GeneralSection>
   <GeneralSection ID="a">
      <SectionTitle>Linking of subapplications</SectionTitle>
      <Paragraph>You can only link subapplications to an <Link href="/baanerp/tg/glossary/glossary#000023" role="glossary">activity</Link> in a business process in the repository. You can
		however, link a role to a subapplication in the <Link href="/baanerp/tg/glossary/glossary#000093" role="glossary">repository</Link> and in a project model.</Paragraph>
   </GeneralSection>
   <GeneralSection ID="b">
      <SectionTitle>Roles and authorization</SectionTitle>
      <Paragraph>When you model subapplications, restrict authorization on the
		highest level possible, as all modeled subsapplications that can be started
		from a modeled (main) application inherit the authorization from the (main)
		application. This means that you must model <Link href="/baanerp/tg/glossary/glossary#000309" role="glossary">subapplications</Link> that are
		started from</Paragraph>
      <Paragraph>the (main) application
		and subapplications that are started from subapplications. The higher the
		restrictions are modeled, the more child-subapplications will inherit the
		restricted authorization.</Paragraph>
      <Paragraph>If a role is linked to a
		main <Link href="/baanerp/tg/glossary/glossary#000067" role="glossary">business process</Link>, the
		subprocess inherit that <Link href="/baanerp/tg/glossary/glossary#000034" role="glossary">role</Link>. The role becomes
		valid, when the subprocess is used in the context of the main business process.
		When the subprocess is used in another main business process, other roles can
		become valid.</Paragraph>
      <Paragraph>Inherited roles are not
		directly linked to the subprocess. So when a business process that is used as a
		subprocess is opened in the <Link href="/baanerp/tg/glossary/glossary#000307" role="glossary">Enterprise</Link> Modeler Editor on
		its own, and not from the main business process, those inherited roles will not
		be known. These roles are, however, valid in the context of that business
		process.</Paragraph>
   </GeneralSection>
   <GeneralSection ID="c">
      <SectionTitle>The use of a file with subapplications</SectionTitle>
      <List>
         <ListIntro>If you use a file with a list of subapplications in the
		  following two sessions, that file must contain the subapplication codes and
		  authorization codes</ListIntro>
         <ListItem>The Global change of Subapplication modeling (tgbrg5223m000)
		  session.</ListItem>
         <ListItem>The Print Subapplication authorizations (tgbrg5423m000)
		  session.</ListItem>
      </List>
      <Paragraph>The following table provides the authorization codes and their
		descriptions. Use, for example, VI for Unix, or Notepad for Windows NT to
		create a file that contain subapplications and their
		authorizations.</Paragraph>
      <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
         <CAPTION>Table 1, Authorization constants for subapplications</CAPTION>
         <THEAD noTR="1">
            <TR no="1" isLast="true">
               <TD rowspan="1" colspan="1">Constant</TD>
               <TD rowspan="1" colspan="1">Constant Name</TD>
               <TD rowspan="1" colspan="1">Enum Description</TD>
            </TR>
         </THEAD>
         <TBODY noTR="6">
            <TR no="1" isLast="false">
               <TD rowspan="1" colspan="1">1</TD>
               <TD rowspan="1" colspan="1">no.perm</TD>
               <TD rowspan="1" colspan="1">No authorization</TD>
            </TR>
            <TR no="2" isLast="false">
               <TD rowspan="1" colspan="1">9</TD>
               <TD rowspan="1" colspan="1">display</TD>
               <TD rowspan="1" colspan="1">Display</TD>
            </TR>
            <TR no="3" isLast="false">
               <TD rowspan="1" colspan="1">25</TD>
               <TD rowspan="1" colspan="1">print</TD>
               <TD rowspan="1" colspan="1">Print/Display</TD>
            </TR>
            <TR no="4" isLast="false">
               <TD rowspan="1" colspan="1">29</TD>
               <TD rowspan="1" colspan="1">modify</TD>
               <TD rowspan="1" colspan="1">Modify/Print/Display</TD>
            </TR>
            <TR no="5" isLast="false">
               <TD rowspan="1" colspan="1">31</TD>
               <TD rowspan="1" colspan="1">insert</TD>
               <TD rowspan="1" colspan="1">Insert/Modify/Print/Display</TD>
            </TR>
            <TR no="6" isLast="true">
               <TD rowspan="1" colspan="1">32</TD>
               <TD rowspan="1" colspan="1">delete</TD>
               <TD rowspan="1" colspan="1">Full Authorization</TD>
            </TR>
         </TBODY>
      </TABLE>
      <ExampleSection>
         <SectionTitle>Example</SectionTitle>
         <Paragraph>tccom0500m000 1 \
		  tccom0501m000 9 \ tccom4500m000 25 \ tccom4530m000 9 \ tccom4535m000 9 \
		  tccom4536m000 9 \ tccom4540m000 9 \ tccom4545m000 9 \ tcmcs1143m000 31</Paragraph>
      </ExampleSection>
      <ProcedureList>
         <ListIntro>Carry out the following steps to create a file that contains
		  subapplications and their authorizations:</ListIntro>
         <ListItem>Enter the session code of the application that must be used as
		  a subapplication.</ListItem>
         <ListItem>Enter any number of spaces.</ListItem>
         <ListItem>Specify the authorization by entering the corresponding number
		  listed in table 1.</ListItem>
      </ProcedureList>
      <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
         <THEAD noTR="1">
            <TR no="1" isLast="true">
               <TD rowspan="1" colspan="1">tccom0500m000</TD>
               <TD rowspan="1" colspan="1">1</TD>
            </TR>
         </THEAD>
         <TBODY noTR="8">
            <TR no="1" isLast="false">
               <TD rowspan="1" colspan="1">tccom0501m000</TD>
               <TD rowspan="1" colspan="1">9</TD>
            </TR>
            <TR no="2" isLast="false">
               <TD rowspan="1" colspan="1">tccom4500m000</TD>
               <TD rowspan="1" colspan="1">25</TD>
            </TR>
            <TR no="3" isLast="false">
               <TD rowspan="1" colspan="1">tccom4530m000</TD>
               <TD rowspan="1" colspan="1">9</TD>
            </TR>
            <TR no="4" isLast="false">
               <TD rowspan="1" colspan="1">tccom4535m000</TD>
               <TD rowspan="1" colspan="1">9</TD>
            </TR>
            <TR no="5" isLast="false">
               <TD rowspan="1" colspan="1">tccom4536m000</TD>
               <TD rowspan="1" colspan="1">9</TD>
            </TR>
            <TR no="6" isLast="false">
               <TD rowspan="1" colspan="1">tccom4540m000</TD>
               <TD rowspan="1" colspan="1">9</TD>
            </TR>
            <TR no="7" isLast="false">
               <TD rowspan="1" colspan="1">tccom4545m000</TD>
               <TD rowspan="1" colspan="1">9</TD>
            </TR>
            <TR no="8" isLast="true">
               <TD rowspan="1" colspan="1">tcmcs1143m000</TD>
               <TD rowspan="1" colspan="1">31</TD>
            </TR>
         </TBODY>
      </TABLE>
   </GeneralSection>
</ManualTopic>