Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Workbench
Viewing all 69588 articles
Browse latest View live

using transformPDF service to flatten pdf form

$
0
0

Hello,

 

I'd like to user LC Output > transformPDF service that used to fllatten a editable form to a "read only" document so the fields will no longer editable.

Does any one have a sample process that use this service?

 

Can you please share or advice on how to use this.

 

Thanks a lot in advance,

Han


Workbench ES3 fails to connect via VPN

$
0
0

Client:

Win 7 enterprise

Workbench ES3 v10.0.2

 

Server:

Adobe LiveCycle ES3 v10.0.2

Oracle WebLogic 10.3.6

Oracle Enterprise Linux 6.5

 

Workbench connection through VPN fails during Synchronize execution with "Error writing request body to server". Log shows the following error;

 

!ENTRY org.eclipse.core.jobs 4 2 2014-05-13 14:28:37.292

!MESSAGE An internal error occurred during: "Initializing service data".

!STACK 0

com.adobe.idp.DocumentError: java.io.IOException: Error writing request body to server

  at com.adobe.idp.DocumentManagerClient.clientSidePush(DocumentManagerClient.java:446)

  at com.adobe.idp.Document.doInputStream(Document.java:1728)

  at com.adobe.idp.Document.passivateInitData(Document.java:1478)

  at com.adobe.idp.Document.passivate(Document.java:1246)

  at com.adobe.idp.Document.passivate(Document.java:1202)

  at com.adobe.idp.Document.getInputStream(Document.java:2030)

  at com.adobe.common.utils.internal.TunnelLib.decodeDocument(TunnelLib.java:133)

  at com.adobe.common.utils.internal.TunnelLib.tunnel(TunnelLib.java:82)

  at com.adobe.common.utils.internal.ServiceRegistryCache.tunnel(ServiceRegistryCache.java:191 2)

  at com.adobe.common.utils.internal.ServiceRegistryCache.getServiceConfigurations(ServiceRegi stryCache.java:1000)

  at com.adobe.common.utils.internal.ServiceConfigurationBatchFetcher$ServiceConfigurationFetc her.run(ServiceConfigurationBatchFetcher.java:108)

  at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Caused by: java.io.IOException: Error writing request body to server

  at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.checkError(HttpURLConne ction.java:2809)

  at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.write(HttpURLConnection .java:2792)

  at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.write(HttpURLConnection .java:2788)

  at com.adobe.idp.DocumentManagerClient.clientSidePush(DocumentManagerClient.java:419)

  ... 11 more

 

is this a known issue?

 

Thanks,

Dejan

How to select a specific XML node with XPath

$
0
0
Hi,

I'm trying to a select a specific node from my XML data using the XPath Builder.  For example, say I have a process variable 'xmlData' with the
following contents:


 
    User 1
    101
 

 
    User 2
    102
 



I can successfully use the following expression to retrieve the name of
a specific user:

(/process_data/xmlData/users/user[userid='102'])/name

The problem is I need to use another process variable for the selection
key.  For Example:

(/process_data/xmlData/users/user[userid=/process_data/@userId])/name

But this always returns null.  I've tried surrounding /process_data/@userId
with single quotes, double quotes, and event {$..$}. 

Any help would be greatly appreciated.

Thanks.

How to extract PDF files from portfolio?

$
0
0

hi,

help needed.

 

I´d like to ask, how to extract PDFs from portfolio. I have to create portfolio, bcs i am creating PDFs with XFA data.

In first step i made PDF portfolio from PDF files, then user should fill it up. And then i need get PDF files, because i need extract data from them. For creation portfolio i use DDX :

<DDX xmlns="http://ns.adobe.com/DDX/1.0/">
  <PDF result="Acrobat 9 Portfolio">
    <Portfolio>
      <Navigator source="AdobeRevolve.nav"/>
      <Schema>
        <Field name="Character" type="Filename"/>
        <Field name="Location" type="Text"/>
      </Schema>
    </Portfolio>
    <PackageFiles>
      <PDF source="Swami.pdf"/>
      <PDF source="Sherlock.pdf"/>
      <FieldData name="Location">London</FieldData>
    </PackageFiles>
  </PDF>
</DDX>

 

I know extract data from one PDF document, but i need to get PDFs from portfolio. Can you HELP? Thanks.....

Any best practices on workflow design??

$
0
0

I feel difficult when migrating applications from DEV->TEST->PROD.

       This is because I have created web services in .net.

       So, for each migration, I am suppose to change all the WSDL links in all forms and Workflows.

 

       Currently:

          I do open the processes in notepad replace all wsdl connection with TEST/PROD connections.

          I do open each form and goto XML Source and replace all WSDl strings.

 

        Is there any other best practice(s) to do that?

 

 

 

Nith

How to use JMS service ?

$
0
0

Hi Experts,

 

I am using standard service sample which comes from adobe site at : http://help.adobe.com/en_US/livecycle/9.0/samples/StandardServicesJMS.html.

 

For JMS related activites, we need to use "Connection Factory, Queue Name and Topic Name. This should be created in our application server. I am using JBOSS server.

 

I dont know where and how to create  above  settings in app server. Actually I googled for sometime  :-(.

 

Could you please let me know how to create the above settings.

 

Waiting  for your valuable reply :-) .

 

Thanks

Praveen

Memory issues in Workbench ES2

$
0
0

Jasmin, Jayan, Paul, Anyone?  Having some problems.  We had been built a process with Workbench ES2 while connected to a 32 bit LiveCycle ES2 server.  Everything worked fine with the process there.  I could record and playback process instances.  I exported the process and imported to a 64 bit LiveCycle ES2 server.  Now, when I connect via workbench to the 64 bit server, and try to do anything with this process, I run out of memory.  My desktop is 32 bit OS.  I changed the Xmx setting to 1024 but it still runs out of memory very quickly.  Even without my process open, it runs very sluggishly.  Adobe Platinum Enterprise Support seems to think I need a 64 bit OS on the client where workbench is installed, but that does not make sense. 

 

Searching through the forums here, we also found to add -Xincgc and -XX:SurvivorRatio32.  This did not help either.

 

Thoughts anyone?

Add text on every page

$
0
0

Dear,

 

I have PDF files and I need to add text on every page they have.

 

The text can be compared to an ID.

This is not a watermark(!) because a watermark spreads out over the center of the page.

On the right margin of any page, I would like to add text rotated 90 degrees clockwise.

 

What I mean is something a footer or header but on the side of a page instead of top/bottom.

 

How am I supposed to do this? I assume making use of a DDX file may help me?

I read something about PageOverlay but I cannot see how i can add content to the pageOverlay in such a way as plain text.

 

Thanks in advance and awaiting a reply!


Re-render or flaten PDF form after the form has filled and send its XML data to a specific folder

$
0
0

Hello Everyone,

 

Does any one know if it possible to re-render or flaten the pdf form after the user has filled it to send to a specific folder along with its XML data? If so, can you please provide some hints on how to start or any example would be appreciated.

e.g. The user filled the form on workspace then when he/she presses on completed, the form will be flatten as a pdf and generate an xml file to send to a specific location on the server.

 

Thanks in advance,

Han Dao

How do I determine the name of a file from a watched folder

$
0
0

I would like to generate a log to track the names and outcomes of files processed from a watched folder.  I don't see a way to access the name of the file from within the process.  I have a variable "inPDF" which is data type "document" and "outResult" which is type "xml" but I don't see a way to access the file name (or path) of the "inPDF" "document" object.  Is there a way to access the file name and path?

Adding node(s) to XML process variable

$
0
0

I have a process with an XML variable, i.e.

 

var myXML = <package>

                        <assets>

                            <foo name="A">....</foo>

                            <foo name="B">....</foo>

                            <foo name="C">....</foo>

                         </assets>

                  </package>

 

and I need to add an additional subtree <foo name="D">...</foo> to this variable under /package/assets/.

I am trying to use SetValue but cannot get it to work.

What's the best way to do this?

Problem with RepositoryClient

$
0
0
I have a PDF form that I copied/wrote to LiveCycle server folder using
RepositoryClient API (writeResource) from my local system. The Write
operation was successful. But I do not see this form when I
synchronize my folders from within Workbench. I do see it when I try
to read it using readResource method and also when I list all the
members in the folder.

How do I see this PDF form from the workbench ? Another thing I notice is that when I list the members of the folder where I am writing the resource to, for the new resource I wrote, I do not see a file with extension 'pdf_dci' that gets created for every form.

 

 

Here is my code.

String fileName = "C:\\My Documents\\WriteResource.pdf";
String LC_FOLDER_PATH = "/Applications/Test/1.0/Forms";
File iFile = new File(fileName);
try {
FileInputStream inputStream = new FileInputStream(iFile);

Properties connectionProps = new Properties();

                connectionProps.setProperty("DSC_DEFAULT_SOAP_ENDPOINT", "http://
hostname:8080");
                connectionProps.setProperty("DSC_TRANSPORT_PROTOCOL","SOAP");

                connectionProps.setProperty("DSC_SERVER_TYPE", "JBoss");

                connectionProps.setProperty("DSC_CREDENTIAL_USERNAME", "username");

                connectionProps.setProperty("DSC_CREDENTIAL_PASSWORD", "password");

                //Create a ServiceClientFactory object

                ServiceClientFactory myFactory =
ServiceClientFactory.createInstance(connectionProps);
                ResourceRepositoryClient repositoryClient = new
ResourceRepositoryClient(myFactory);

                // Create a RepositoryInfomodelFactoryBean needed for creating
resources
                RepositoryInfomodelFactoryBean repositoryInfomodelFactory = new
RepositoryInfomodelFactoryBean(null);

                   // Create the resource to be written to the folder
                /**     Resource testResource = repositoryInfomodelFactory.newResource(
                    new Id(),
                    new Lid(),
                    "testResource"
                        );**/
                // Set the resource’s description

                Resource testResource = new Resource();
                testResource.setId(new Id());
                testResource.setLid(new Lid());
                testResource.setName("xyz.pdf");
                testResource.setDescription("test resource");

                ResourceContent testContent =
repositoryInfomodelFactory.newResourceContent();

                Document doc = new Document(iFile,false);
                testContent.setDataDocument(doc);

                testResource.setContent(testContent);

                   // Write the resource to the folder
                repositoryClient.writeResource(LC_FOLDER_PATH, testResource);

                // Retrieve the resource’s URI
                String resourceUri = LC_FOLDER_PATH + "/" + testResource.getName();

                   // Retrieve the resource to verify that it was successfully
written
                Resource r = repositoryClient.readResource(resourceUri);
                List<Resource> members =
repositoryClient.listMembers(LC_FOLDER_PATH);
                for(Resource r1:members) {
                        System.out.println("r1 name =" + r1.getName());
                }
                   // Print the resource verification message
                System.out.println("Resource " + r.getName() + " was successfully
written.");

                }catch(Exception ex){ex.printStackTrace();}
        }

 


Thanks,

Jyothi

select user action without opening the form

$
0
0

Environment is:  LiveCycle ES2.5  Turnkey install Express Mode.  Windows, JBoss, MySQL.

                            Browser IE w/ Reader-X.

 

At a User Task, it has a few User Actions (such as "Approve", "Reject"),

how do I allow the user to activate/select one of those actions (while he is in the WorkSpace) without forcing him to open the form?

 

I remember those User Actions used to show up in the To-Do list's "card", but somehow I don't see them anymore.

What do I need to do to get them show up in the "Card" ?

 

TIA

EmailService not able to receive from Gmail

$
0
0

I am trying to use EmailService deployed with Livecycle 8.2 to fetch emails from a gmail account and then do some stuff with the attachments. But when i give the configuration in the workbench and test in the workbench itself, i get an error like 'could not connect to imap.gmail.com'

 

Has someone tried the EmailService using Gmail, please help

 

 

Folllowing is ths configuration i am using

 

Inbox Host: imap.gmail.com

Inbox port: 993

Inbox protocol: imap

ssl enabled checkbox checked

 

username: my_username@gmail.com

password: my_password

getting pdf attachment from email into map variables

$
0
0
I'm developing a livecycle process in wich I Use the Receive Service to getting an e-mail filtered by subject and by From value.
The e-mail contains a PDF attachment wich I assign in the service to a map variable.
The attachment is a PDF Form with signatures and is submitted by email with a submit button (inside submit panel of the object palette for the button I set PDF in the field "submit as" ).

The e-mail was retrieved but the LC process doesn't continue because of some error that I found in the log.
This is the first error I found:

UserServiceImpl:createTaskFromDialogProperties() An exception occured trying to create a task, and the exception is unrelated to assigning to an invalid user. Exception message is: Cannot coerce object: <document state="active" senderVersion="3" persistent="false" senderPersistent="true" passivated="false" senderPassivated="true" deserialized="true" senderHostId="127.0.0.1/100.153.1.197" callbackId="0" senderCallbackId="0" callbackRef="null" isLocalizable="true" isTransactionBound="false" defaultDisposalTimeout="600" disposalTimeout="600" maxInlineSize="65536" defaultMaxInlineSize="65536" inlineSize="0" contentType="application/octet-stream; name="~4988639.pdf"" length="567607"><cacheId/><localBackendId/><globalBackendId/><senderLocalBackendId/><send erGlobalBackendId><DocumentFileID fileName="C:\globaldocumentroot\docm1204794582734\97f718fece0fddaf993627b603eb0501"/><sen derGlobalBackendId/><inline/><senderPullServantJndiName>adobe/idp/DocumentPullServant/adob ejb_server1</senderPullServantJndiName><attributes/></document> of type: com.adobe.idp.Document to type: class com.adobe.livecycle.formsservice.client.AcrobatVersion

Can someone help me to understand what's happening and how to resolve, please ?
Thanks in advance!

Not able to assemble two interactive PDF forms to form a single interactive PDF

$
0
0

Hi,

 

I am trying to assemble two interactive PDF forms to form a single PDF. I am using LiveCycle process with Assembler and Invoke ddx file for this. But the resultant PDF is a flattened non interactive file.

Please guide me in obtaining a interactive PDF from two interactive PDFs.

 

Thanks in Advance,

Shabeer

Using Powershell in LiveCycle Workbench

$
0
0

Hello Everyone,

 

I am attempting to revamp a daily process that we do at my job. What I want to do is set up a workflow in workbench which will walk the user through the process step by step. As the user goes through the steps I want them to check the item off and then i want workbench to execute a powershell script or Batch file which will complete that part of the process. Once that script is run, the user can move on to the next step in the process. Is this something I can do? And if not can anyone recomend a software that can?

 

Thanks in advance,

 

sgarciacode

AEM Forms - Workbench - executeScript Input Filepath

$
0
0

I am working on a project to move our old workflows out of Central Output Server to AEM Forms. In Central we call several custom agents that we want to plugin to the new workflow in Workbench.

 

I am trying to use the executeScript process, but having trouble getting the file path of the input file. In Central, we used the @InFile for this (the code below has the exact arguments used by central).

 

Is there a way to get the path of the input file (or other files) and pass them as arguments to an exe?

 

 

 

 

import java.lang.ProcessBuilder;

 

System.out.println("Route Detected: DS_Insert");

 

 

String jobName = patExecContext.getProcessDataStringValue("/process_data/@jobName");

System.out.println("Job Name: " + jobName);

 

 

var inFile =patExecContext.getProcessDataDocumentValue("/process_data/inDat");

System.out.println("InFile Path: " + inFile);

 

 

//System.out.println("Starting SCEChart");

//ProcessBuilder process = new ProcessBuilder("E:\\jfsrvr\\Agents\\SCEChartAgent\\SCEChartAgent.exe","-start -d E:\\jfsrvr\\Chart_Data -i @InFile -j E:\\jfsrvr\\SRCMedicalCenter\\Configs\\jfserver1.jmd -g1 UserLoginName -g2 PID_1_F03_C0_MRN -g3 PID_1_F18_PatAcctNum -g4 PV1_1_F44_AdmitDateTime -g5 EVN_F05_Operator_ID").start();

Routing a Form to a preset Email address

$
0
0

Hi,

 

I am trying to route a form through a series of preset email addresses. I have designed the form and was able to test it by creating a process that uses workspace to invoke and route the form and now I am at a point where I am trying to use the preset email addresses instead of the "assign user" service operation that I had used to test the form using workspace.

 

Here are a few questions that came across my mind when I went about acheving this:

 

  1. Should I be using the "Send With Document" email service operation in order to route the form to the preset email address?
  2. How do I setup the attachment so that the form (PDF) that was initally filled while invoking the process is sent as an attachment to the preset email address?
  3. After the first user receives the email attachment with the PDF form, then the user is supposed to fill additional data into the form and then when the user clicks on Send/Complete button the form should be routed to the another preset email address. Do I need to setup an "email endpoint" to accomplish this?

Routing the forms through workspace seemed to be fairly trivial, but I couldnt find any guidance for routing a form through a series of emails. I am new to LiveCycle, so any help/adivse would be really appreciated.

 

Thanks,
Varma

How to send email in html format?

$
0
0

Dear all,

I can send email using the component email service provided by the "Adobe Live Cycle". I am using concat function in xpath of Message to automate the composition of the mail.My requirement is to get the mail in a particular format - but instead - recieving email with all in a single line!

 

 

Kindly help me out in fixing this issue- Attaching the current format I recieve in my inbox and also the required format for your review

 

 

Thanks a lot

 

Vinod

Viewing all 69588 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>