2-10 Oracle Fusion Middleware Idoc Script Reference Guide
2.3.5.4 While Looping Example
In this example, a variable named abc is increased by 2 during each pass through the loop. On the sixth pass when abc equals 10, the condition expression is no longer
true, so the loop is exited.
abc=0 loopwhile abc10
abc=abc+2 endloop
2.3.5.5 Ending a Loop
There are two Idoc Script tags that will terminate a ResultSet loop or while loop:
■
endloop returns control to the beginning of the loop for the next pass. All loops must be closed with an endloop tag.
■
break causes the innermost loop to be exited. Control resumes with the first statement following the end of the loop.
2.3.6 Administration Interface
You can use Idoc Script in several areas of the administration interface, including:
■
Section 2.3.6.1, Workflow Admin
■
Section 2.3.6.2, Web Layout Editor
■
Section 2.3.6.3, Batch Loader
■
Section 2.3.6.4, Archiver
■
Section 2.3.6.5, System Properties
■
Section 2.3.6.6, E-mail
2.3.6.1 Workflow Admin
In the Workflow Admin tool, you can use Idoc Script to define the following:
■
step events
■
jump messages
■
extra exit conditions
■
tokens
■
custom effects for jumps For example, the following step entry script sends documents in the Secure security
group to the next step in the workflow: if dSecurityGroup like Secure
wfSetwfJumpName, New wfSetwfJumpTargetStep, wfCurrentStep1
wfSetwfJumpEntryNotifyOff, 0 endif
For more information, see Section 3.8.1, Workflows.
2.3.6.2 Web Layout Editor
In the Web Layout Editor, you can use Idoc Script in the page titles, page descriptions, URL descriptions, query result pages, and content queries.
Idoc Script Application 2-11
For example:
■
You can use Idoc Script tags in the query results page definition to specify the contents of each row in a search results table.
■
To set the search results to return all content items up to 7 days, you could define the search query to be:
dInDate dateCurrent-7
■
To define a report that returns results based on the current user, you could define User Name is UserName as part of the report query expression.
For more information, see Oracle Fusion Middleware System Administrators Guide for Oracle Content Server.
2.3.6.3 Batch Loader
In the Batch Loader, you can use Idoc Script in a mapping file, which tells the BatchBuilder utility how to determine the metadata for file records. For more
information, see Oracle Fusion Middleware System Administrators Guide for Oracle Content Server.
2.3.6.4 Archiver
In Archiver, you can use Idoc Script in the following areas:
■
Export query values. For example, to archive content more than one year old, you
could use dateCurrent-365 as the Release Date value.
■
Value map output values. For example, to set the expiration date one week in the
future for all imported revisions, you could use dateCurrent7 as the Output Value.
For more information, see Oracle Fusion Middleware System Administrators Guide for Oracle Content Server.
2.3.6.5 System Properties