I'm not sure what you mean by output format. The requests submitted to
STAF and the results received from STAF are all strings.
STAF requests that can produce "multi-valued" results provide the results
in the marshalled form of a data structure. STAF provides support for
automatically marshalling and unmarshalling structured data. The act of
marshalling takes a data structure and converts it into a string-based
representation. The act of unmarshalling reverses this and converts the
string-based representation back into a data structure.
STAF supports the following generic data types with its marshalling:
None - a unique type representing the absence of a value
String - an arbitrary string value
List - an ordered collection of other objects
Map - an unordered collection of key/value pairs
Map class - a Map with intrinsic metadata
Marshalling context - represents a set of map class definitions and a data
structure defined in terms of them
For example, a LIST or QUERY request submitted to a STAF service generally
produces a multi-valued result. For example, a LIST request submitted to
the TRUST service returns a marshalled result consisting of a <List> of
<Map:<Class>> where every item in the list is an instance of the same map
class and all the values in all the maps are of type <String> or <None>,
so the data is displayed in a table format as follows:
C:\>STAF local TRUST LIST
Response
--------
Type Entry Trust Level
------- ------------- -----------
Default <None> 3
Machine local://local 5
You can read more about this in sections "5.5 New Format for Multi-Valued
Results" and "6.6 Handling Marshalled Structured Data (Unmarshalling) in
the STAF V3 Migration Guide at
http://staf.sourceforge.net/current/stafmigrate.html#Header_MultiValueResult
. Also, see section "6.1 Marshalling Structured Data" in the STAF User's
Guide at http://staf.sourceforge.net/current/STAFUG.htm#HDRMARSHALL.
STAF provides APIs (e.g. for Java, C++, Python, Perl, Tcl) to unmarshall
the result string. For example, if you were using Java, you could
unmarshall the result of a TRUST LIST request to obtain a Java List object
containing the above result and then iterate through this list to obtain
the type, entry, and trust level fields in each entry in the list. The
STAF Java User's Guide at
http://staf.sourceforge.net/current/STAFJava.htm#Header_STAFResult
provides more information about this. There are also User Guides for
Python, Perl, and Tcl available via the STAF/STAX Documentation web page
at http://staf.sourceforge.net/docs.php.
Also, note that the STAF LOG service provides a QUERY request to query the
content of a STAF log (as a STAF log file is a binary log file created by
the STAF LOG service). STAF also provides some utilities to assist in
viewing and formatting STAF log files (as talked about in section "9.0 Log
Utilities" in the STAF User's Guide at
http://staf.sourceforge.net/current/STAFUG.htm#HDRUTILS). For example:
- The STAFLogFormatter Java class allows you to format a STAF log file as
html or text.
- The FmtLog utility will read a STAF log file and format and write the
data to an output file in a readable text format.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
From: Irfan Sayed <irfu.sa...@gmail.com>
To: staf-users@lists.sourceforge.net,
Date: 09/15/2013 11:06 PM
Subject: Re: [staf-users] TAP format
please suggest
regards
irfan
On Fri, Sep 13, 2013 at 9:06 AM, Irfan Sayed <irfu.sa...@gmail.com> wrote:
thanks.
then what all format it supports as output ?
regards
irfan
On Thu, Sep 12, 2013 at 8:13 PM, Sharon Lucas <luc...@us.ibm.com> wrote:
No.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
From: Irfan Sayed <irfu.sa...@gmail.com>
To: staf-users@lists.sourceforge.net,
Date: 09/12/2013 06:20 AM
Subject: [staf-users] TAP format
Hi,
Does STAF/STAX supports TAP format as output format ?
regards
irfan
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8,
SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack
includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users