Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
totaldis

New Member
Registered:
Posts: 9
Reply with quote  #1 
I'm running into an issue where any time I attempt to use a scripted business object, a c# class, the object is used across any instance of the process.

For example, I have an employee object and I assign a property on this object through a process. If I go to Blank Forms and start a new folder with the same process that same instance started in the previous folder is used and therefore pre-populated with data. I must be going about the class wrong because having a single object shared across all folders couldn't possibly be the only use of business objects.

Essentially I want to be able to create a new employee object for each folder. 

Tips?
0
pdkaman

Senior Member
Registered:
Posts: 71
Reply with quote  #2 
Don't all objects in BPM have to be static?  Doesn't this imply that you can really leverage classes in the native sense?  That is, the 'new' keyword isn't available on static classes.  So basically because of this static requirement, all subsequent folders are drawn from the same instance.  Thus, I don't think you can do what you're trying to do.

Just my two cents.
0
totaldis

New Member
Registered:
Posts: 9
Reply with quote  #3 
It turns out all objects do not have to be static. The fix for our issue was to set these classes as abstract non-static and this will create new instances per process.
0
pdkaman

Senior Member
Registered:
Posts: 71
Reply with quote  #4 
Thanks for the tip.  That's good to know, I thought I was forced to use static classes only.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!