best grammar app

Savvion Document Dataslot – Add Documents Programmatically (Free Download Code)

Submitted by Abhishek on Sun, 2012-05-20 15:40
Progress SAvvion

 

If you want to store a single document you choose "Single" If you want to store multiple documents in a single dataslot you will need to put it as a document bundle.

Step 3: Add Dataslots to Workstep/Adapters

Now we will add these fields to the various worksteps.

  • In the Start Step add First Name and Last Name
  • In the Adapter add All four Dataslots
  • In the review workstep Add all four Dataslots

Your Adapter property screen should look like:

 

Step 4: Work with the Adapter

Lets Start work with the adapter. Right click the adapter and click open. You will see Java Code. Since you have selected the various dataslots your Setters and Getters will be generated automatically.

public class DocumentManager {

      private String firstName;

      private DocumentDS iDProof;

      private String lastName;

      private DocumentDS otherDocuments;

 

      public String getFirstName() {

            return this.firstName;

      }

 

      public DocumentDS getIDProof() {

            return this.iDProof;

      }

 

      public String getLastName() {

            return this.lastName;

      }

 

      public DocumentDS getOtherDocuments() {

            return this.otherDocuments;

      }

 

      public void setFirstName(String firstName) {

            this.firstName= firstName;

      }

 

      public void setIDProof(DocumentDS iDProof) {

            this.iDProof= iDProof;

      }

You will need to write code in the manager() method as this

public void manage() throwsException{

            // Lets add a document to the ID Proof

            System.out.println("Adding Documents ..");

            File f1=new File("c:\\documents\\One.png");

            File f2=new File("c:\\documents\\Two.png");


Abhishek Mishra
Good experience in working with BPM technologies like Savvion, JBPM. Founder and Chief Editor of BPMGeek.com. Founder of Savvion Business Manager Mobility Framework Savmobify| View my BPMGeek Profile
|
best grammar app

About BPMGeek

BPMGeek is an initiative to collaborate and communicate with the growing Business process management community out there. The goal is to help developers connect with experts, ask questions, post their learning and get understanding of BPM Concepts. Often tool specific knowledge of niche areas end up developers perplexed and confused - especially when there are very less number of resources available. We will be coming up several several new features. Have a look at our Roadmap here

BPMGeek is an independent entity not associated with any Product. All BPM product professionals are invited to contribute. The Logos and Names used across the site belong to their respective owners. The viewpoints mentioned by Individual contributors are their own. BPMgeek cannot be held liable for any issues arising out of it.


BPMgeek is promoting the Nounshoun English Grammar App - developed by Constellation Software.