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 
validation works. Trying to publish gives the following error message with no component (so you have to find the damn thing yourself - could be in a library as well):
Quote:
The type arguments for method 'Metastorm.Runtime.Core.Mstm.If<T>(Metastorm.Runtime.Types.Check, T, T)' cannot be inferred from the usage. Try specifying the type arguments explicitly.

I mean, it's expecting a type T, the two options for the IF() function are both type T. What could be wrong with that?

Maybe you have to explicitly cast the return of an IF() function? How much help am I getting from the doco? (sound of crickets....)


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

Avatar / Picture

Senior Veteran
Registered:
Posts: 259
Reply with quote  #2 
Just had exactly that error message - three times - when publishing.  No clues as to what it means or where it is.

This is a v7.6 process which I migrated and then went through converting the v7-speak to v9-speak.

Anyone got any ideas where I should start looking?

__________________

Another full day of doing nothing but rearranging zeros and ones. :)
You know it will be a good day when there is no human interaction on the schedule.

0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #3 
Try validation instead of deployment, it is more likely to give you the component name. The alternative is save a copy, and keep removing components until the fault goes away to determine where it is. It takes hours, but it works.

I would also have used the file migrator beta that coverts metascript into C#. It's not perfect, but it saves a load of time.

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

Guru
Registered:
Posts: 688
Reply with quote  #4 
The biggest issue I have with the beta tool is that its generated code created over 21k errors on validation ... most of which were for the actual BO references.

However, I am using a combination of the "official" version along with the beta version while rewriting the code.  The beta was great at converting a lot of the old scripts and JScript.NET into C# code segments, reducing the rewrite time.  I just copy/paste, then fix/cleanup the code segments.
0
Rick

Avatar / Picture

Senior Veteran
Registered:
Posts: 259
Reply with quote  #5 

Thanks Jerome.

Validation didn't throw up any errors which was confusing - only publication.

I have found the offending code now using your suggested method of deleting bits one at a time until the error went away. The problem was

ReplaceSubstrings(Inbound_EMailData.ReplyBody, "[[SERVICEAREA]]", If(Inbound_EMailData.SupportTeam=="", "appropriate", Inbound_EMailData.SupportTeam), 0)


I tried adding .ToString on the end of different bits of this but couldn't find anything that worked so I've just taken it out and the email will just have to have the word 'appropriate' instead of quoting the exact service area. I'm too hot and annoyed to worry about it now.


__________________

Another full day of doing nothing but rearranging zeros and ones. :)
You know it will be a good day when there is no human interaction on the schedule.

0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #6 
Looks like the third parameter in the If() function should be made .ToString()

If that does not work, use the ternary operator ( x ? y : z) and add the .ToString()

Good luck!

__________________
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  #7 
Quote:
Originally Posted by BMellert
The biggest issue I have with the beta tool is that its generated code created over 21k errors on validation ... most of which were for the actual BO references.

However, I am using a combination of the "official" version along with the beta version while rewriting the code.  The beta was great at converting a lot of the old scripts and JScript.NET into C# code segments, reducing the rewrite time.  I just copy/paste, then fix/cleanup the code segments.


You actually got any JScript.Net to convert? Every trial of ours has failed.

The rest was pretty good for two very large systems (10 to 20 solution files each). Most BO's had to be redone anyway as it was on Oracle, and it is very sensitive to case when using Oracle, and the stage names to captions issue. Some functions like substring were wrong (1-based index, not zero-based), and a few others.

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

Guru
Registered:
Posts: 688
Reply with quote  #8 
Quote:
Originally Posted by Jerome
You actually got any JScript.Net to convert? Every trial of ours has failed.

That may be a bit generous.  What I liked was that instead of the Evaluate it converted into C#, reducing the rewrite time, though not eliminating it.

I spent most of yesterday "cleaning up" a 'converted' JScript.Net script.  While it was decent, it didn't account for several things correctly.  It reduces the time needed, but doesn't work great.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!