best grammar app

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

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

Savvion Business Manager is a leading Business Process Management (BPM) Product. BPM Products provide several Data fields to store data values. One such happens to be Document Dataslots. Document Dataslots in Savvion can store one single document or multiple documents.  Adding document dataslots is very simple. You just add a dataslot from Designer which has type, document and add it as a field in your worktep. That’s it the document is available.

 

Problem comes in if you have a business case to add a document to this dataslot programmatically. This could be a case if you want some documents to be available by default for each submitted request.

 

This post will help you do that. Note this post assumes you are familiar with creating a process, adding performers, adding dataslots, deploying etc. If you are not, Please refer to other posts on the same.

 

What are we planning to do?

We are planning to put together a process which will four dataslots

  • First Name (Text)
  • Last Name (Text)
  • ID Proof (Single Document)
  • Other Documents (Multiple Documents)

The process starts with user providing First Name and Last Name.

After that there will be an adapter which will add a document “One.png” stored in “C:/documents”) folder on my server to the ID Proof Dataslot and documents “Two.png” and “Three.png” to the Other Documents Dataslot. After that there is a review workstep where you can verify if the documents got attached.

 

Lets get started.

 

Step 1: Define a Business Process

For the test we will define a simple Business Process.

  • Start Step
  • Document Manager Adapter
  • Review Workstep

  

Make creator the performer for the Review Workstep.

 

 

Now Add a performer  of type Adapter and add it to the workflow. Make sure you have clicked on “Generate java Code ”

 

Step 2: Add Dataslots

Now Add the required Dataslots one by one. First Add the Two Text Dataslots by clicking the Tab “Dataslots”  and then “New”

 

Similarly Add Last Name as a Text Dataslot. These are just there for dummy reasons, not really required.

Now Add the IDProof Dataslot which will be Single Document by clicking the Tab “Dataslots”  and then “New”

Now Add the Other Document dataslot as a Document Bundle


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.