Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
suityou01

Avatar / Picture

Veteran
Registered:
Posts: 213
Reply with quote  #1 
Anyone got any experience of doing this?

I'm a but stumped.

On page 162 of the Designer manual it states :

MBPM Type = DateTime : .NET Equivalent = System.Date

I don't have a System.Date object in my .Net framework though, only System.DateTime, which doesn't compile

public virtual Metastorm.Runtime.Types.DateTime Start_Date
{
get { return GetField<System.DateTime>("Start_Date"); }
set { SetField<System.DateTime>("Start_Date", value); }
}


So what casting do I need to do to get this to compile?

In terms of date types in .Net I have DateTime and DateTimeKind and DateTimeOffset, and irrespective of how wrong the last 2 are, they still won't compile.

0
suityou01

Avatar / Picture

Veteran
Registered:
Posts: 213
Reply with quote  #2 
Oops, top of page 163 is the word Time so that explains why it says System.Date on pg 162

So Metastorm.Runtime.Types.DateTime = System.DateTime

So why won't it compile?
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #3 
There are so many reasons it will not compile. I also have the lovely problem that the fields are all blank on an Oracle system. One SBO works fine, another two and any others I create show blank fields. It's all to do with Oracle returning column names as upper case, whatever the SQL, I think, but even if the SQL is all in uppercase it fails.

We have a virtual class in our library that does most of the stuff you do not need to set in most cases. It is used in the Folder Query admin form in our admin tools - have a look:
http://processmapping.com.au/freestuff/freemetastormbpm9solutions/AdminTools.html

Let me know if any of that is out of date and I'll update it.

__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
0
suityou01

Avatar / Picture

Veteran
Registered:
Posts: 213
Reply with quote  #4 
If it helps I had a problem recently with grid fields being blank. Metastorm confirmed that the property names on the BO must match exactly the column names in the database, including case sensitivity.

The grid would display a blank row, but the data was accessible via UserContext. As soon as I changed the properties on the scripted BO to upper case (as the column names were in the database) then it worked.

As it didn't error this was quite a nasty one to track down, so I just wonder if it could help you at all?
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #5 
I had figured that out, as this is the case with all BO's in Oracle. This one will just NOT show any data, even though I have done everything. If I add a field 'x' X into the select clause it returns that column filled, all the others empty.

I am getting very annoyed with it!

__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!