@Tracked(value=TRACE) public class FileWriterAdapter extends ObjectAdapterActivity
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
APPEND_TO_FILE |
static java.lang.String |
OUTPUT_FILEPATH |
static java.lang.String |
WRITE_STRING |
DO_LOGGING, REQUEST_VARIABLE, RESPONSE_VARIABLE| Constructor and Description |
|---|
FileWriterAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeConnection(java.lang.Object connection)
Close a connection opened.
|
protected java.lang.String |
getFilePath() |
protected java.lang.Object |
getRequestData()
Override this method if need to translate data from variable
or need to get data elsewhere.
|
protected java.lang.Object |
invoke(java.lang.Object connection,
java.lang.Object requestData)
This method must be implemented to perform the
real invocation of external system service.
|
protected boolean |
isAppend() |
boolean |
isSynchronous()
Determine if the adapter itself is synchronous, i.e.
|
protected java.lang.Object |
openConnection()
Open a connection to the external system.
|
directInvoke, doLogging, execute, executePostScript, executePreScript, externalRequestToString, externalResponseFromString, externalResponseToString, getAdapterInvocationErrorMessage, getPostScript, getPostScriptBindings, getPreScript, getPreScriptBindings, getResponse, getStubbedResponse, getStubRequest, getStubResponse, handleAdapterFailure, handleAdapterInvocationError, handleAdapterSuccess, isStubMode, logRequest, logRequest, logResponse, logResponseexecutecloseDatabaseAccess, createDocument, createDocument, createDocument, createDocument, doCompatibilityCodeSubstitutions, evaluateExpression, executeScript, getActivityId, getActivityInstance, getActivityInstanceId, getActivityName, getAsset, getAttribute, getAttribute, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValueAsVariableName, getAttributeValueSmart, getDocument, getDocumentContent, getDocumentForUpdate, getEngine, getEntryCode, getExternalEventInstanceDetails, getMainProcessDefinition, getMasterRequestId, getOutputDocuments, getPackage, getParameterId, getParameters, getParameterStringValue, getParameterType, getParameterValue, getParameterValue, getParentProcessId, getPerformanceLevel, getProcessDefinition, getProcessId, getProcessInstance, getProcessInstanceId, getProcessInstanceOwner, getProcessInstanceOwnerId, getProperty, getRequiredAttribute, getRequiredVariableValue, getReturnCode, getReturnMessage, getRuntimeContext, getScriptEvaluator, getScriptExecClassName, getScriptExecutor, getValue, getValueSmart, getVariableInstance, getVariableValue, getVariableValueSmart, getWorkTransitionInstanceId, initialize, isDisabled, isLogDebugEnabled, isLogInfoEnabled, isOutputDocument, lockActivityInstance, lockProcessInstance, logdebug, logexception, loginfo, logsevere, logtag, logwarn, openDatabaseAccess, prepare, setOutputDocuments, setParameterValue, setParameterValue, setParameterValueAsDocument, setParameterValues, setProcessInstanceCompletionCode, setReturnCode, setReturnMessage, setValue, setVariableValue, setVariableValue, startTransaction, stopTransaction, translatePlaceHolder, updateDocumentContent, updateDocumentInfo, updateDocumentInfo, valueIsJavaExpression, valueIsVariablepublic static final java.lang.String OUTPUT_FILEPATH
public static final java.lang.String APPEND_TO_FILE
public static final java.lang.String WRITE_STRING
public boolean isSynchronous()
ObjectAdapterActivityisSynchronous in interface com.centurylink.mdw.activity.types.AdapterActivityisSynchronous in class ObjectAdapterActivityprotected java.lang.Object openConnection()
throws com.centurylink.mdw.connector.adapter.ConnectionException,
com.centurylink.mdw.connector.adapter.AdapterException
ObjectAdapterActivityopenConnection in class ObjectAdapterActivitycom.centurylink.mdw.connector.adapter.ConnectionException - retriable connection failurecom.centurylink.mdw.connector.adapter.AdapterException - non-retriable connection failureprotected void closeConnection(java.lang.Object connection)
ObjectAdapterActivitycloseConnection in class ObjectAdapterActivityprotected java.lang.Object getRequestData()
throws com.centurylink.mdw.activity.ActivityException
ObjectAdapterActivitygetRequestData in class ObjectAdapterActivitycom.centurylink.mdw.activity.ActivityException - when the attribute cannot be
fetched for any reasonprotected java.lang.Object invoke(java.lang.Object connection,
java.lang.Object requestData)
throws com.centurylink.mdw.connector.adapter.AdapterException,
com.centurylink.mdw.connector.adapter.ConnectionException
ObjectAdapterActivityinvoke in class ObjectAdapterActivitycom.centurylink.mdw.connector.adapter.AdapterException - Adapter exception may or
may not be retriable, which you can set in the
exception itself. Default is not retriable.com.centurylink.mdw.connector.adapter.ConnectionException - certain protocol may also
throw ConnectionException here. ConnectionException
can be retried.protected java.lang.String getFilePath()
throws com.centurylink.mdw.config.PropertyException
com.centurylink.mdw.config.PropertyExceptionprotected boolean isAppend()
throws com.centurylink.mdw.config.PropertyException
com.centurylink.mdw.config.PropertyException