Thursday, December 20, 2012

Does Archiver Do Dynamic Value Mapping? <$if isTrue(IsSkeptical)$>I Don’t Think It Can.<$else$>Absolutely!<$endif$>


A user in the Oracle forums recently made a rather blanket statement that “dynamic changes are not possible with Archiver”. 

Never being one to shy away from a challenge, this post shows that import maps in Archiver can indeed be designed to be dynamic. 

It’s not readily apparent, but the admin applets are largely capable of utilizing Idoc Script, which in itself is very dynamic.  Coupling script with components is a very powerful way to build very complex logic to compute values in a mapping operation.  You don’t necessarily need a component, as you can simply key all the script logic directly into the value map box, but it’s easier to edit and compose the code logic outside of the applet.

To demonstrate this, first create an archive, and select a document to export, and export it. 

Looking at the item’s document information page, the document’s info looks like this.  Note that the expiration date is blank.
 


As an initial example, let’s set the expiration date to 7 days from the current date.
 
Open the archive’s “Import Maps” tab.  Select the “Edit” button located beside the “Value Maps” section.


Select “Expiration Date” from the field list.  In the “Output Value” box, enter “<$dateCurrent(7)$>” as shown in the next screen print, and click “Add”.  The value map is added as shown in the second screen print.   Click “Ok” to exit.


 
Now import the document exported earlier.  The expiration date is now set for 7 days from the date/time the import was executed.

 
Let’s do something a bit more complex by building some logic into a component to build a value for assigning to a document.  This example will be used to add comments to the document from the first example.  Again, note that the comments are blank for the document.



Start with creating a component with a resource file.  In the resource file, let’s create a dynamichtml include called “myExternalLogic”.



Let’s discuss a couple of things about the include that was created. 

First, note the “trimtext” directive added to the include definition.  This tells the system “whatever the result of the include is, trim the leading and trailing white space”.  This is good, since eventually the computed value will be put into a metadata field, and the extra whitespace may be an issue.  Secondly, note the trailing <$strResult$>.  Think of this like an ECHO statement – we’re just printing out the result for the import process, and it is necessary to actually get the value passed.

In the import map section, now add “Comments” as the field, and enter the text “<$include myExternalLogic$>” in the “Output Value” box as shown.  Click “Ok”.



Importing the document again populates the comments section with “some random text” as shown.


The logic can easily be more complex.  Let’s add another variable to the calculation.  Add <$myTemp=1$> to the import map as shown.



Now in the component resource, edit the resource to use this new value in the calculation.




Now the comments are populated based on the value of the variable “myTemp”.


The possible variables could also include environment variables, local variables, or other active values in the current row of the result set, which makes this VERY powerful.  Any constructs used in a dynamichtml statement are valid.  

For example, to put the current document type into the comments field use <$strResults=#active.dDocType$>.  It’s also possible to execute services in this manner to retrieve other data, although if field names are identical in the executed service, there is a risk of data pollution.


This is a really simple example of how Archiver is definitely “not static”, and can easily handle complex calculations.



 


30 comments:

  1. Thanks for covering probable dynamic patterns in your component and I have to bookmark this dig I continue in integration. But can you please give details about Dynamic value mapping and where it really use this?

    ReplyDelete
  2. We have a team of the finest dissertation methodology experts that is a perfect fit for your troubles.

    ReplyDelete
  3. We, at Assignmenthelp.us, know how to write all assignments on time, and deal with all types of complicated papers without fail. Our online MBA help have been an integral part of the industry for the past many years.

    ReplyDelete
  4. A storm is strong enough to be identified as a mesocyclone, additional cape may not add much to the factor of increasing the chance. Cheapest Assignment Writing Service available.

    ReplyDelete
  5. I have to say that you are on the right track. This will be loved by several individuals as it is detailed and interesting. All the best for your future work.
    dubai bus routes

    ReplyDelete
  6. I blog quite often and I seriously thank you for your content. This great article has truly peaked my interest. I am going to take a note of your site and keep checking for new information about once per week. I opted in for your Feed as well
    dubai expo 2020

    ReplyDelete
  7. What are the merits of hiring writer for Pschology Research Paper Services? One of the significant benefits of hiring Pschology Writing Service Writer is that a learner obtains high-quality and original Pschology Term Paper Services .

    ReplyDelete
  8. Making use of these vape juice flavors has an unfavorable result on both the environment and also human health. These experiments do not include any kind of environmental influences hence are restricted in a number of methods.worldvaping

    ReplyDelete
  9. It is so great to see that you have write best technological blog that could help a lot of people to understand this issue. BY: Essay writing service

    ReplyDelete
  10. Excellent information Providing by your Article, thank you for taking the time to share with us such a nice article. Amazing insight you have on this, it's nice to find a website that details so much information about different artists. Kindly visit the LiveWebTutors website we providing the best assignment help services in Australia.

    For More Info: Assignment Help Brisbane

    ReplyDelete
  11. I blog quite often and I seriously thank you for your content. This great article has truly peaked my interest. I am going to take a note of your site and keep checking for new information about once per week. I opted in for your Feed as well
    jobs in dubai
    Ikea dubai
    Dubai Gold Rate
    expo 2020
    dubai mall cinema
    Dubai jobs
    Places to visit In Dubai
    dubai exposition universelle 2020
    Hotels in Dubai
    Skydive dubai

    ReplyDelete
  12. A network planning analyst analyses, plans, and assesses network systems. The individual provides documentation and reports to the management. Analysts provide planned and strategic input on the overall network planning and projects related to it. They perform various network management services concerning the operation of telecommunications networks. Analysts create and deploy future designs. They write code and build systems for automating the daily network operations.

    ReplyDelete
  13. Hi Nice Post

    I work as a marketing specialist and staff author at Externetworks which is a pioneer in Managed Technology Services with over 17+ years of experience in providing end-to-end solutions featuring design, deployment and 24*7 support to top IT companies. We offer world-class managed services for businesses to stay agile & profitable. Our services include 24/7 Network Monitoring, Uptime maintenance, NOC Support, IT Helpdesk services.


    To Know about noc meaning

    ReplyDelete
  14. I work as a marketing specialist and staff author at Externetworks which is a pioneer in Managed Technology Services with over 17+ years of experience in providing end-to-end solutions featuring design, deployment and 24*7 support to top IT companies. We offer world-class managed services for businesses to stay agile & profitable. Our services include 24/7 Network Monitoring, Uptime maintenance, NOC Support, IT Helpdesk services.

    Read more at: sd wan

    ReplyDelete
  15. You can use a transportable device once you are faraway from home, but you'll need a more robust oxygen solution reception . for instance , many portable oxygen concentrators aren't approved or recommended by doctors to be used during sleep. ask your doctor about the right solution you would like .portable oxygen machine

    CPAP masks are available during a sort of variants, including the nose or full face, which vary in shape and size, so it is a good idea to undertake to ascertain which style suits your face best.cpap cleaner

    ReplyDelete
  16. Thanks for the blog post. check the similar The first professional networking platform for commissions
    Find - Visit profiles offering commissions
    Connect - Contact with best commission providers near you
    Commission - Work or refer the business and get agreed commission
    Sales commission

    ReplyDelete
  17. Very nicely explained and include all important information.I also recommend visiting mobile app development company

    ReplyDelete
  18. Is this archive suitable for everyday use? I can ask about it at this writing service where I usually online do my dissertation cause making of dissertations is a really hard process. Anyway, thanks for sharing.

    ReplyDelete

  19. Important information included in this post. keep it up. Qualified dissertation lit review write

    ReplyDelete
  20. There are academic nursing writing help companies whose ultimate goal is to provide Help with Nursing Writing Services since they are aware most nursing essay writing service part-time students lack enough time to complete their college custom nursing assignments.

    ReplyDelete
  21. Online religion research paper writing services are very difficult to complete and many students are always searching for Religion Research Paper Services companies to help them complete their custom religion essay writing services.

    ReplyDelete
  22. There are academic nursing writing help companies whose ultimate goal is to provide Help with Nursing Writing Services since they are aware most nursing essay writing service part-time students lack enough time to complete their college custom nursing assignments.

    ReplyDelete
  23. Experience also includes supervision in the clinical setting, complex case management, risk management, and coordination of clinical care. Nurses passion is to help and care for all people, and because of this, they want to become a Family Nurse Practitioner and then a Doctor of Nursing Practice https://best-writing-service.org/essays/health/concept-synthesis-on-personal-nursing-philosophy.html.

    ReplyDelete
  24. Very nicely explained and include all important information.I also recommend visiting elearning mobile app developer

    ReplyDelete
  25. I'm truly dazzled about the information you give in your articles. I should state am exceptionally overpowered by your entire story. It is difficult to get such quality data online these days. I anticipate remaining here for quite a while.

    office.com/setup
    office.com/setup
    mcafee.com/activate
    mcafee.com/activate

    ReplyDelete
  26. Thanks for covering probable dynamic patterns in your component and I have to bookmark this dig I continue in integration. But can you please give details about Dynamic value mapping and where it really use this? Psychology Assignment Writing Service

    ReplyDelete
  27. Thanks for sharing such a piece of wonderful information. Moreover, it is very true that Entertainment company is ruling the world.
    There is everything fame, money but first, you need to set-up your brand availability. Promote your brand, gain customers’ trust, present what the audience wants,
    and you will be able to rule the entertainment company.
    entertainment company

    ReplyDelete
  28. Thanks for sharing such a piece of wonderful information. Moreover, it is very true that Entertainment company is ruling the world.
    There is everything fame, money but first, you need to set-up your brand availability. Promote your brand, gain customers’ trust, present what the audience wants,
    and you will be able to rule the entertainment company.
    entertainment company

    ReplyDelete
  29. Thank you for the auspicious writeup. It if truth be told was a enjoyment account it. Glance advanced to more added agreeable from you! However, how can we keep up a correspondence? We create together, measure always, and revise often, ensuring your customers stay at the focus. Digital Marketing Services

    ReplyDelete