<?xml version='1.0' encoding='UTF-8'?>

<Properties version="4.1">
	<Property name="xslt.base64Zipped">true</Property>
	<Property name="xslt.ignoreInput">false</Property>
	<Property name="xslt.params" type="List">
		<Property name="var.organizationId">var.organizationId</Property>
		<Property name="var.session">var.session</Property>
	</Property>
	<Property name="xslt.saveAtServer">true</Property>
	<Property name="xslt.source">&lt;?xml version="1.0" encoding="UTF-8"?>
&lt;user>&lt;id>07aca040-83d3-11e5-9c17-025000002727&lt;/id>&lt;displayName>Admin Admin&lt;/displayName>&lt;loginName>Admin&lt;/loginName>&lt;name>Admin Admin&lt;/name>&lt;eMailAddress/>&lt;active>true&lt;/active>&lt;locale>en&lt;/locale>&lt;language>de&lt;/language>&lt;country>DE&lt;/country>&lt;organizations>&lt;organization>&lt;id>095c2500-83d3-11e5-9c17-025000002727&lt;/id>&lt;displayName>095c2500-83d3-11e5-9c17-025000002&lt;/displayName>&lt;name>095c2500-83d3-11e5-9c17-025000002727&lt;/name>&lt;configuration/>&lt;createdOn>2015-11-27T15:26:56Z&lt;/createdOn>&lt;createdByUser>&lt;id>07aca040-83d3-11e5-9c17-025000002727&lt;/id>&lt;displayName>Admin Admin&lt;/displayName>&lt;/createdByUser>&lt;lastUpdatedOn>2015-11-27T15:26:56Z&lt;/lastUpdatedOn>&lt;lastUpdatedByUser>&lt;id>07aca040-83d3-11e5-9c17-025000002727&lt;/id>&lt;displayName>Admin Admin&lt;/displayName>&lt;/lastUpdatedByUser>&lt;active>false&lt;/active>&lt;permissions>&lt;permission>&lt;module>am&lt;/module>&lt;context>asset&lt;/context>&lt;method>create&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>asset&lt;/context>&lt;method>delete&lt;/method>&lt;/permission&gt;&lt;permission>&lt;module>am&lt;/module>&lt;context>asset&lt;/context>&lt;method>executeAction&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>asset&lt;/context>&lt;method>get&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>asset&lt;/context>&lt;method>getActionAttributes&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>asset&lt;/context>&lt;method>query&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>asset&lt;/context>&lt;method>update&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>person&lt;/context>&lt;method>create&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>person&lt;/context>&lt;method>delete&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>person&lt;/context>&lt;method>get&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>person&lt;/context>&lt;method>query&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>person&lt;/context>&lt;method>update&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>query&lt;/context>&lt;method>create&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>query&lt;/context>&lt;method>delete&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>query&lt;/context>&lt;method>get&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>query&lt;/context>&lt;method>query&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>query&lt;/context>&lt;method>update&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>template&lt;/context>&lt;method>create&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>template&lt;/context>&lt;method>delete&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>template&lt;/context>&lt;method>get&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>template&lt;/context>&lt;method>getImage&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>template&lt;/context>&lt;method>query&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>template&lt;/context>&lt;method>setImage&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>template&lt;/context>&lt;method>update&lt;/method>&lt;/permission>&lt;permission&gt;&lt;module>api&lt;/module>&lt;context>organization&lt;/context>&lt;method>getConfiguration&lt;/method>&lt;/permission>&lt;permission>&lt;module>api&lt;/module>&lt;context>organization&lt;/context>&lt;method>setConfiguration&lt;/method>&lt;/permission>&lt;/permissions>&lt;/organization>&lt;organization>&lt;id>5ce1f180-941a-11e5-ab83-025000002727&lt;/id>&lt;displayName>Gruppe VAM&lt;/displayName>&lt;name>Gruppe VAM&lt;/name>&lt;configuration/>&lt;createdOn>2015-11-27T15:26:56Z&lt;/createdOn>&lt;createdByUser>&lt;id>07aca040-83d3-11e5-9c17-025000002727&lt;/id>&lt;displayName>Admin Admin&lt;/displayName>&lt;/createdByUser>&lt;lastUpdatedOn>2015-11-27T15:26:56Z&lt;/lastUpdatedOn>&lt;lastUpdatedByUser>&lt;id>07aca040-83d3-11e5-9c17-025000002727&lt;/id>&lt;displayName>Admin Admin&lt;/displayName>&lt;/lastUpdatedByUser>&lt;active>true&lt;/active>&lt;permissions>&lt;permission>&lt;module>am&lt;/module>&lt;context>asset&lt;/context>&lt;method>create&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>asset&lt;/context>&lt;method>delete&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>asset&lt;/context>&lt;method>executeAction&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>asset&lt;/context>&lt;method>get&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>asset&lt;/context>&lt;method>getActionAttributes&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>asset&lt;/context>&lt;method>query&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>asset&lt;/context>&lt;method>update&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>person&lt;/context>&lt;method>create&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>person&lt;/context>&lt;method>delete&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>person&lt;/context>&lt;method>get&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>person&lt;/context>&lt;method>query&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>person&lt;/context>&lt;method>update&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>query&lt;/context>&lt;method>create&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>query&lt;/context>&lt;method>delete&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>query&lt;/context>&lt;method>get&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>query&lt;/context>&lt;method>query&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>query&lt;/context>&lt;method>update&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>template&lt;/context>&lt;method>create&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>template&lt;/context>&lt;method>delete&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>template&lt;/context>&lt;method>get&lt;/method&gt;&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>template&lt;/context>&lt;method>getImage&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>template&lt;/context>&lt;method>query&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>template&lt;/context>&lt;method>setImage&lt;/method>&lt;/permission>&lt;permission>&lt;module>am&lt;/module>&lt;context>template&lt;/context>&lt;method>update&lt;/method>&lt;/permission>&lt;permission>&lt;module>api&lt;/module>&lt;context>organization&lt;/context>&lt;method>getConfiguration&lt;/method>&lt;/permission>&lt;permission>&lt;module>api&lt;/module>&lt;context>organization&lt;/context>&lt;method>setConfiguration&lt;/method>&lt;/permission>&lt;/permissions>&lt;/organization>&lt;/organizations>&lt;roles>&lt;role>Administrator&lt;/role>&lt;role>ApplicationInstaller&lt;/role>&lt;role>VAM-administrator&lt;/role>&lt;role>bpcAdmin&lt;/role>&lt;/roles>&lt;createdOn>2015-11-05T16:36:49Z&lt;/createdOn>&lt;createdByUser>&lt;id>07aca040-83d3-11e5-9c17-025000002727&lt;/id>&lt;displayName>Admin Admin&lt;/displayName>&lt;/createdByUser>&lt;lastUpdatedOn>2015-11-27T15:26:56Z&lt;/lastUpdatedOn>&lt;lastUpdatedByUser>&lt;id>07aca040-83d3-11e5-9c17-025000002727&lt;/id>&lt;displayName>Admin Admin&lt;/displayName>&lt;/lastUpdatedByUser>&lt;/user></Property>
	<Property name="xslt.sourceVariables" type="Map">
		<Property name="ISWorkflowName">VAM_api_main_attachUser</Property>
		<Property name="ISServerName">dev02.virtimo.net</Property>
		<Property name="var.userContext" type="XmlDocument">&lt;?xml version="1.0" encoding="UTF-8"?>
&lt;userContext>&lt;contextid>d9feb0ae-55d1-49c6-8842-b9846ae1af7d&lt;/contextid>&lt;/userContext></Property>
		<Property name="ISInvokingWorkflow">VAM_api_main_api</Property>
		<Property name="var.log" type="XmlDocument">&lt;?xml version="1.0" encoding="UTF-8"?>
&lt;log>&lt;entries/>&lt;/log></Property>
		<Property name="ISModuleId">23</Property>
		<Property name="var.loginName">Admin</Property>
		<Property name="var.user" type="XmlDocument">&lt;?xml version="1.0" encoding="UTF-8"?>
&lt;user>&lt;id>07aca040-83d3-11e5-9c17-025000002727&lt;/id>&lt;displayName>Admin Admin&lt;/displayName>&lt;loginName>Admin&lt;/loginName>&lt;name>Admin Admin&lt;/name>&lt;eMailAddress/>&lt;active>true&lt;/active>&lt;locale>en&lt;/locale>&lt;language>de&lt;/language>&lt;country>DE&lt;/country>&lt;organizations>&lt;organization>&lt;id>095c2500-83d3-11e5-9c17-025000002727&lt;/id>&lt;displayName/>&lt;name/>&lt;createdOn>2015-11-27T16:01:56.454+01:00&lt;/createdOn>&lt;createdByUser>&lt;id>07aca040-83d3-11e5-9c17-025000002727&lt;/id>&lt;displayName>Admin Admin&lt;/displayName>&lt;/createdByUser>&lt;lastUpdatedOn>2015-11-27T16:01:56.454+01:00&lt;/lastUpdatedOn>&lt;lastUpdatedByUser>&lt;id>07aca040-83d3-11e5-9c17-025000002727&lt;/id>&lt;displayName>Admin Admin&lt;/displayName>&lt;/lastUpdatedByUser>&lt;/organization>&lt;organization>&lt;id>5ce1f180-941a-11e5-ab83-025000002727&lt;/id>&lt;displayName/>&lt;name/>&lt;createdOn>2015-11-27T16:01:56.454+01:00&lt;/createdOn>&lt;createdByUser>&lt;id>07aca040-83d3-11e5-9c17-025000002727&lt;/id>&lt;displayName>Admin Admin&lt;/displayName>&lt;/createdByUser>&lt;lastUpdatedOn>2015-11-27T16:01:56.454+01:00&lt;/lastUpdatedOn>&lt;lastUpdatedByUser>&lt;id>07aca040-83d3-11e5-9c17-025000002727&lt;/id>&lt;displayName>Admin Admin&lt;/displayName>&lt;/lastUpdatedByUser>&lt;/organization>&lt;/organizations>&lt;roles>&lt;role>ApplicationInstaller&lt;/role>&lt;role>VAM-administrator&lt;/role>&lt;role>Administrator&lt;/role>&lt;/roles>&lt;createdOn>2015-11-05T16:36:49.490+01:00&lt;/createdOn>&lt;createdByUser>&lt;id>07aca040-83d3-11e5-9c17-025000002727&lt;/id>&lt;displayName>Admin Admin&lt;/displayName>&lt;/createdByUser>&lt;lastUpdatedOn>2015-11-27T16:01:56.454+01:00&lt;/lastUpdatedOn>&lt;lastUpdatedByUser>&lt;id>07aca040-83d3-11e5-9c17-025000002727&lt;/id>&lt;displayName>Admin Admin&lt;/displayName>&lt;/lastUpdatedByUser>&lt;/user></Property>
		<Property name="ISGlobalProcessId">1233347</Property>
		<Property name="var.datastream" type="InternalDocument" documentSize="33">H4sIAAAAAAAA/2PgSZv2ffUmLXUGXocL7MuL2pPmMTAEGjp8YGBgfLlyu/4BALO3bdEhAAAA</Property>
		<Property name="ISUserName">VAM</Property>
		<Property name="ISInvokingModule">VAM_api_wfc_attachUser</Property>
		<Property name="ISCurrentTime">1448636516504</Property>
		<Property name="var.organizationId">5ce1f180-941a-11e5-ab83-025000002727</Property>
		<Property name="ISProcessId">1233347</Property>
		<Property name="var.session" type="XmlDocument">&lt;?xml version="1.0" encoding="UTF-8"?>
&lt;session>&lt;configuration>&lt;api> 
    &lt;database> 
      &lt;uri>jdbc:oracle:thin:@dev02.virtimo.net:1521:xe&lt;/uri>  
      &lt;user> 
        &lt;loginName>VPP_API&lt;/loginName>  
        &lt;password>VPP_API&lt;/password> 
      &lt;/user>  
      &lt;default> 
        &lt;alertTimeout>20&lt;/alertTimeout>  
        &lt;queryTimeout>60&lt;/queryTimeout> 
      &lt;/default>&lt;type>mssql&lt;/type> 
    &lt;/database>  
    &lt;entity> 
      &lt;validate>true&lt;/validate> 
    &lt;/entity>  
    &lt;response> 
      &lt;debuggingInformation>true&lt;/debuggingInformation>  
      &lt;format>false&lt;/format>  
      &lt;validate>true&lt;/validate> 
    &lt;/response>  
    &lt;user> 
      &lt;maxAge>P0DT0H5M0S&lt;/maxAge>  
    &lt;/user>&lt;technicalUser> 
      &lt;loginName>sys&lt;/loginName> 
    &lt;/technicalUser>&lt;alerting> 
      &lt;recipient> 
        &lt;eMailAddress>kaufhold@virtimo.de &lt;/eMailAddress> 
      &lt;/recipient>&lt;mail> 
      &lt;host>smtp.googlemail.com&lt;/host>  
      &lt;sender> 
        &lt;eMailAddress>jochen@virtimo.net &lt;/eMailAddress> 
      &lt;/sender>  
      &lt;debuggingInformation>true&lt;/debuggingInformation> 
    &lt;/mail> 
    &lt;/alerting>&lt;backend>&lt;im>&lt;url>https://localhost:7080/im/1/rest/&lt;/url>&lt;/im>&lt;/backend> 
  &lt;/api>&lt;am> 
      
    &lt;database> 
      &lt;uri>jdbc:oracle:thin:@dev02.virtimo.net:1521:xe&lt;/uri>  
      &lt;user> 
        &lt;loginName>VPP_AM&lt;/loginName>  
        &lt;password>VPP_AM&lt;/password> 
      &lt;/user>  
      &lt;default> 
        &lt;alertTimeout>20&lt;/alertTimeout>  
        &lt;queryTimeout>60&lt;/queryTimeout> 
      &lt;/default> 
    &lt;/database>  
    &lt;entity> 
      &lt;validate>true&lt;/validate> 
    &lt;/entity>  
      
      
    &lt;technicalUser> 
      &lt;loginName>sys&lt;/loginName> 
    &lt;/technicalUser>
      
      
     
  &lt;/am>&lt;userGroupName>VAM&lt;/userGroupName>&lt;/configuration>&lt;startTimestamp>1448636516370&lt;/startTimestamp>&lt;/session></Property>
		<Property name="ISModuleName">VAM_api_joiner</Property>
	</Property>
	<Property name="xslt.stylesheet" type="XmlDocument">&lt;?xml version="1.0" encoding="UTF-8"?>
&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" exclude-result-prefixes="#all" version="2.0">
  &lt;xsl:output method="xml" encoding="UTF-8"/>&lt;xsl:param name="var.organizationId"/>&lt;xsl:param name="var.session" as="element()"/>
  &lt;xsl:template match="/*">&lt;xsl:variable name="var.organization" select="organizations/*[id = $var.organizationId]" as="element()?"/>&lt;xsl:choose>&lt;xsl:when test="active = 'false'">&lt;error>&lt;code>api-1&lt;/code>&lt;xsl:copy-of select="."/>&lt;/error>&lt;/xsl:when>&lt;xsl:when test="not(exists($var.organization))">&lt;error>&lt;code>api-2&lt;/code>&lt;xsl:copy-of select="."/>&lt;/error>&lt;/xsl:when>&lt;xsl:when test="$var.organization/active = 'false'">&lt;error>&lt;code>api-10&lt;/code>&lt;xsl:copy-of select="."/>&lt;/error>&lt;/xsl:when>&lt;xsl:otherwise>&lt;session> 
        
      &lt;xsl:copy-of select="$var.session/configuration"/>  
      &lt;user>&lt;xsl:copy-of select="*[not(self::organizations)]"/>&lt;xsl:copy-of select="$var.organization/permissions"/>&lt;organizations>&lt;organization>&lt;xsl:copy-of select="$var.organization/*[not(self::permissions)]"/>&lt;/organization>&lt;/organizations>&lt;/user>  
      &lt;xsl:copy-of select="$var.session/startTimestamp"/> 
    &lt;/session>&lt;/xsl:otherwise>&lt;/xsl:choose>
  &lt;/xsl:template>
&lt;/xsl:stylesheet></Property>
	<Property name="xslt.target"></Property>
	<Property name="xslt.transformer">net.sf.saxon.TransformerFactoryImpl</Property>
</Properties>