Adobe
Products
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
Student and Teacher Editions
More products
Solutions
Digital marketing
Digital media
Education
Financial services
Government
Web Experience Management
More solutions
Learning Help Downloads Company
Buy
Home use for personal and home office
Education for students, educators, and staff
Business for small and medium businesses
Licensing programs for businesses, schools, and government
Special offers
Search
 
Info Sign in
Welcome,
My cart
My orders My Adobe
My Adobe
My orders
My information
My preferences
My products and services
Sign out
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out My orders My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Review and Checkout
Adobe Developer Connection / LiveCycle Developer Center /

How to debug and test your LiveCycle ES processes

by Paul Guerette

Paul Guerette
  • Adobe

Created

3 December 2007

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
debugging LiveCycle testing

Requirements

Prerequisite knowledge

  • A running LiveCycle ES server with Adobe LiveCycle Workbench connected to that server.
  • Access to the system log.

User level

Beginning

Additional Requirements

LiveCycle ES

  • Try
  • Buy

LiveCycle Workbench ES

  • Try
  • Learn more

There are many ways to debug and test a process or orchestration that you create using the Adobe LiveCycle ES software. Some are obvious and others are not so obvious. This article discusses different techniques that can be used to debug and test your processes.

Debugging your process using Variable Logger

Often, when you are building up your process, you will add variables to be used at different stages throughout your process. It is helpful to know the state of these variables during your process. The LiveCycle ES software provides a service that will dump the contents of all variables for you to look at. The service is called the Variable Logger and is located under the Foundation category (see Figure 1 for a view of the properties to set up for variable logging).

Properties of the Variable Logger service
Figure 1. Properties of the Variable Logger service

The information about your variables can be written to the application server log or to a file on disk. I prefer the system log because I can use third-party tools to view the login real time (I use a shareware program called BareTail from BareMetalSoft.com). Note that I change the name of the service to "***** DEBUG1 *****" so that it is easier to spot in the log. Also, if your log viewer can highlight text, then setting it to highlight your ***** DEBUG1 ***** enables you to find it even easier.

The Variable Logger will write out simple types (string, xml, int, and so on) so you can see the content in real time, but it cannot write out complex types. For these complex types, the Variable Logger creates a temp file and a reference to the file. You cannot see the contents of your complex variables, but you will at least know that the variable is populated with data.

You can put multiple variable loggers into your process as required to see how the variables change in your process (see Figure 2 for a sample of different variables and how they would appear in the log).

Sample output showing variables in system log
Figure 2. Sample output showing variables in system log

One last technique I find useful is that you can change the start point of your process by right-clicking the service that you want to start and setting the Start action. You can break connections between services as well as have services log an in or out path to them to isolate testing areas.

Debugging your process using the Execute Script service

Another service that is useful for debugging is the Execute Script service found in the Foundation category. This service enables you to execute a Java program (based on BeanShell) so you can write anything you want to the log. By making use of the Process Management APIs, you can get access to additional information that you may want to track (see figures 3 and 4 as an example of a script operation and its associated output).

Sample BeanShell script
Figure 3. Sample BeanShell script
Associated output from BeanShell scripting
Figure 4. Associated output from BeanShell scripting

Invoking your service from LiveCycle Workbench ES

If you are creating an orchestration (a process without user steps), then it is a bit of a nuisance to get your process started without creating additional collateral to start your process (an Enterprise JavaBean (EJB), a form, a watched folder end point or e-mail end point, to name a few). One technique I find useful is to make use of the web service end point that is created automatically for you whenever you activate your service.

There is a technique you can use to call the web service interface from inside of LiveCycle Workbench ES. Note that this method is unsupported in a production environment, but is perfectly fine for a developer to use to invoke the process in a test environment.

  1. To be able to invoke from LiveCycle Workbench ES, you must modify a Workbench INI file. Locate the file called workbench.ini in the root folder where you installed LiveCycle Workbench ES (the default location is: C:\Program Files\Adobe\LiveCycle ES\Workbench ES\Workbench). Open this file using Notepad.
  2. Locate the line -Dcom.adobe.qpacadmin.unsupported.invoke.enable=false —it is at the beginning of the second paragraph (see Figure 5). Change enable=false to enable=true.
  3. Save your file.
Changes in the workbench.ini file
Figure 5. Changes in the workbench.ini file
  1. Start LiveCycle Workbench ES. (This setting is only read when LiveCycle Workbench ES starts, so restart LiveCycle Workbench if it is already running.)
  2. Open the process map that you want to test.
  3. Make sure that the Components view is available to you. (You may have to activate the Components view from the Window/Show Views file menu in LiveCycle Workbench ES.) The Components view will show you all of the components that are running in your system.
  4. Expand the Components tree. All services that you create will also be under the same heading: com.adobe.idp.workflow.dsc.service.workflowDSC. Locate this heading and expand it.
  5. Expand the Active Services branch.
  6. Locate the service you want to test. If you do not see your service, make sure that you have activated it. Once you locate your service's entry, expand it. There should be a single operation (invoke) listed below it.
  7. Select and then right-click the invoke operation. A menu item "invoke operation" should appear. (If it does not, then you have not set up the INI file correctly.) Choose the invoke operation. Your process will now prepare to start. If you have any input variables, then a dialog box will appear allowing you to enter the inputs next to the variable names that you have defined. If there are document objects as inputs, three dots will appear allowing you to pick a file for the document; otherwise, you can type in simple values.
  8. Click OK to run your process. Any output variables will be written back to the screen (see Figure 6 for a sample).
Invoke Parameters dialog box for Service invoked through LiveCycle Workbench ES
Figure 6. Invoke Parameters dialog box for Service invoked through LiveCycle Workbench ES

Stalled items

When you are building a long-lived process and the process halts for whatever reason, all trace and error information is written to the application sever log. The location and access to the log file is dependent on the installation as well as the particular application server that you are using.

If you do not have access to the log, a summary of the trace information can be found in the Administrative User interface (adminui). Assuming you have the appropriate rights, you can access it by going to http://hostname:port/adminui. Once you authenticate to the application, choose Services, then LiveCycle Process Management ES. From there you can view all of the stalled operation and branch errors. You can take corrective action (if required) or you can simply view the trace information to see what is causing the problem.

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License

More Like This

  • Performance testing Adobe LiveCycle ES applications with IBM WebSphere Application Server

Products

  • Acrobat
  • Creative Cloud
  • Creative Suite
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Elements
  • Mobile Apps
  • Photoshop
  • Touch Apps
  • Student and Teacher Editions

Solutions

  • Digital marketing
  • Digital media
  • Web Experience Management

Industries

  • Education
  • Financial services
  • Government

Help

  • Product help centers
  • Orders and returns
  • Downloading and installing
  • My Adobe

Learning

  • Adobe Developer Connection
  • Adobe TV
  • Training and certification
  • Forums
  • Design Center

Ways to buy

  • For personal and home office
  • For students, educators, and staff
  • For small and medium businesses
  • For businesses, schools, and government
  • Special offers

Downloads

  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2012 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy Policy and Cookies (Updated)

Ad Choices

Reviewed by TRUSTe: site privacy statement