Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
<%@ jet
imports="
org.talend.core.model.process.INode
org.talend.core.model.process.ElementParameterParser
org.talend.core.model.metadata.IMetadataTable
org.talend.core.model.metadata.IMetadataColumn
org.talend.core.model.process.IConnection
org.talend.core.model.process.IConnectionCategory
org.talend.designer.codegen.config.CodeGeneratorArgument
org.talend.core.model.metadata.types.JavaTypesManager
org.talend.core.model.metadata.types.JavaType
java.util.List
java.util.Map
"
%>
<%
CodeGeneratorArgument codeGenArgument = (CodeGeneratorArgument) argument;
INode node = (INode)codeGenArgument.getArgument();
String cid = node.getUniqueName();
String arserver = ElementParameterParser.getValue(node, "__ARSERVER__");
String username = ElementParameterParser.getValue(node, "__USERNAME__");
String password = ElementParameterParser.getValue(node, "__PASSWORD__");
%>
System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.NoOpLog");
com.bmc.arsys.api.ARServerUser aruser_<%=cid%> = new com.bmc.arsys.api.ARServerUser("<%=username%>", "<%=password%>", "", "<%=arserver%>");
String sysname = com.bmc.arsys.api.Constants.AR_SYSTEM_NAME;
System.out.println(sysname);
<?xml version="1.0" encoding="UTF-8"?>
<COMPONENT>
<HEADER AUTHOR="Me" RELEASE_DATE="20111220A" COMPATIBILITY="ALL"
PLATEFORM="ALL" SERIAL="" VERSION="0.102" STATUS="ALPHA" STARTABLE="true">
<SIGNATURE/>
</HEADER>
<FAMILIES>
<FAMILY>Application/BMC/Remedy</FAMILY>
</FAMILIES>
<DOCUMENTATION>
<URL></URL>
</DOCUMENTATION>
<CONNECTORS>
<CONNECTOR CTYPE="FLOW"/>
</CONNECTORS>
<PARAMETERS>
<PARAMETER NAME="ARSERVER" FIELD="TEXT" REQUIRED="true" NUM_ROW ="1" />
<PARAMETER NAME="USERNAME" FIELD="TEXT" REQUIRED="true" NUM_ROW ="2" />
<PARAMETER NAME="PASSWORD" FIELD="TEXT" REQUIRED="true" NUM_ROW ="2" />
<PARAMETER NAME="AUTH" FIELD="TEXT" REQUIRED="false" NUM_ROW ="3" />
<PARAMETER NAME="SCHEMA" FIELD="SCHEMA_TYPE" REQUIRED="true" NUM_ROW="4"/>
</PARAMETERS>
<ADVANCED_PARAMETERS>
<PARAMETER NAME="DESC" FIELD="CHECK" REQUIRED="false" NUM_ROW ="1" />
<PARAMETER NAME="REPL" FIELD="CHECK" REQUIRED="false" NUM_ROW ="2" />
<PARAMETER NAME="UND" FIELD="CHECK" REQUIRED="false" NUM_ROW ="3" />
<PARAMETER NAME="LAB" FIELD="CHECK" REQUIRED="false" NUM_ROW ="4" />
<PARAMETER NAME="PORT" FIELD="INT" REQUIRED="false" NUM_ROW ="5" />
<PARAMETER NAME="RPC" FIELD="INT" REQUIRED="false" NUM_ROW ="6" />
</ADVANCED_PARAMETERS>
<CODEGENERATION>
<IMPORTS>
<IMPORT NAME="arapi7604" MODULE="arapi7604.jar" REQUIRED="true" />
<IMPORT NAME="log4j" MODULE="log4j-1.2.14.jar" REQUIRED="true" />
</IMPORTS>
</CODEGENERATION>
<RETURNS>
<RETURN NAME="NB_LINE" TYPE="id_Integer" AVAILABILITY="AFTER"/>
</RETURNS>
</COMPONENT>
public abstract interface com.bmc.arsys.api.Constants {
public static final java.lang.String AR_SYSTEM_NAME = "Action Request System";
}
public class com.bmc.arsys.api.ARServerUser {
public ARServerUser(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3);
}