public class WfXML2 extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DMSFILTERATT |
static String |
MESSAGEATT |
static short |
MODE_ACTIVE
Operating mode active means that WfXML is fully active.
|
static short |
MODE_OFF
Operating mode off means that WfXML is deactivated.
|
static short |
MODE_PASSIVE
Operating mode passive means that WfXML is activated.
|
Constructor and Description |
---|
WfXML2() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanContext() |
static String |
dateToWfXMLDate(Date date)
Transforms a date to a WfXML date (like specified in the WfXML
specification).
|
static com.dec.avw.core.Server |
getDefaultServer() |
static User |
getDefaultUser() |
static int |
getMaxLogSize() |
static short |
getOperatingMode()
Use this method to find out if the local server operates in passive,
active, or off mode.
|
static Partner |
getPartner(String id)
Use this method to get a Partner object representing a WfXML
communication partner that you know (you must know the id with which the
partner has been defined).
|
static WfXMLMessage |
getWfXMLMessage()
Return the current WfXMLMessage.
|
static boolean |
isLogEnabled(String object) |
static void |
setContext(ActivityInstance ai,
WfXMLMessage message)
Sets the context for DMS Filter Operations
|
static Date |
wfXMLDateToDate(String dateString)
Transforms a WfXML date to a Java
Date object. |
public static final short MODE_ACTIVE
public static final short MODE_OFF
public static final short MODE_PASSIVE
public static final String DMSFILTERATT
public static final String MESSAGEATT
public static String dateToWfXMLDate(Date date)
YYYY-MM-DDThh:mm:ssZ
and always in GMT (Greenwich Mean
Time). So this method transforms the given date to this requirements.wfXMLDateToDate(String)
method.date
- A Date object containing a date/time which you want to
tranform to WfXML representationpublic static com.dec.avw.core.Server getDefaultServer()
public static User getDefaultUser()
public static int getMaxLogSize()
public static short getOperatingMode()
short
value representing the operating mode of
the local server. This can be one of the constants of this class,
e.g., MODE_ACTIVE
.public static Partner getPartner(String id)
id
- The id with which the partner has been defined in the
enterprise configuration of the local server.null
if no partner with this id exists.public static boolean isLogEnabled(String object)
public static Date wfXMLDateToDate(String dateString)
Date
object. The
WfXML date must be in the specified format
YYYY-MM-DDThh:mm:ssZ
and in GMT (Greenwich Mean Time). The
returned date object will represent the time in the current timezone,
depending on where the computer is located. For transformations in the
other direction, use the dateToWfXMLDate
method.dateString
- A String object containing the WfXML representation of a
date/time.Date
object containing the date and
time.ApplicationException
- if the String dateString
is not formatted
according to the above mentioned format.public static void setContext(ActivityInstance ai, WfXMLMessage message)
ai
- the ActivityInstance; get it with WfEngine.getContext()message
- the message; get it with WfXML2.getWfXMLMessage()public static void cleanContext()
public static WfXMLMessage getWfXMLMessage()
@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.