Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #1 
Perhaps someone can tell me what I am doing wrong, and why this code fails validation:

        public static Metastorm.Runtime.Types.DateTime AddWeekdays

(
[Alias("Start Datetime")] [Description("the datetime to add the weekdays to")] Metastorm.Runtime.Types.DateTime mdStart,
[Alias("Weekadys")] [Description("the number of weekdays to add")] int iWeekdays
)
{
System.DateTime dStart = GetSystemDateTime( mdStart );
System.DateTime dResult = AddWeekdays( dStart, iWeekdays );

return GetMetastormDateTime( dResult );
}
The last line is the line causing the error.

Here are the signatures for the functions called:

public static System.DateTime GetSystemDateTime( Metastorm.Runtime.Types.DateTime mdDate )
private System.DateTime AddWeekDays( System.DateTime date, int offset)
and
public static Metastorm.Runtime.Types.DateTime GetMetastormDateTime( System.DateTime dDate )


__________________
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
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #2 
Ok, it was the line two above causing it. We are still getting the '2 lines offset' when validating scripts it seems, and I thought that was fixed.

The call AddWeekdays should have been AddWeekDays

I have changed them to be more explicit and not get confused, plus of course making it static....

__________________
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!