Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
MGibson

Member
Registered:
Posts: 25
Reply with quote  #1 
I have a solution with several server side script files that i use throughout my solution. A example of the file would be

namespace
namespace Metastorm.Runtime.Models.myProjName
{
   public class ssUtilities
   {
[Promote(PromotionTargets.ExpressionBuilder)]
[Category("UserCategory")]
public static string BLAHH (string sVal)

[SOME CODE HERE]
return someVal;

}

   }
}
 
In the when action starts code I called this method by simply doing this.
string temp = ssUtilities.BLAHH(someval);
 
This worked great in 9.0 but after upgrading to 9.1 this no longer works. I am getting  "The Name 'ssUtilities' does not exist in the current context." I have tried adding the full namespace Metastorm.runtime.Models.myProjName and received an error that 'Models' does not exist. I am even getting errors about the name 'Local' not existing.
 
All i did was open the solution and validate it.
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #2 
Well, we had no problems with the beta like this.

I have not had a chance to try out the release properly, but will do this weekend.

I did notice that intelli(non)sense seems to give me a list of absolutely everything when activated from a property box field. I cannot recall that from the beta, so it may be that namespacing has got snaffued. I'd be surprised, though, as it would have been found.

Can you post an example that I can try on the w/e?

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

Member
Registered:
Posts: 25
Reply with quote  #3 
Ok, this is weird, something i just noticed/thought of. I have a smaller solution that when i opened it was fine. I recall that when I opened the solution giving me issues the designer crashed on me. Not sure if that had something to do with it.  I can create a new solution and my name spaces are fine

0
MGibson

Member
Registered:
Posts: 25
Reply with quote  #4 
Ok, after diving into the haystack I found the needle. So This is a large solution converted from 7.6. I had one line that was trying to reference eFolderID through the myProcessData.eFolderID, which in 9.0 was still there.  I generally use the ProcessContext.FolderId, which is why this was hard to find.
After upgrading to 9.1 efolderid was removed from myProcessData, but the error cascaded and gave me a list of 485 errors(almost every error having to do with namespaces) to wade through.
So now that I feel like an idiot I'm gonna go have a drink ;)~

0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #5 
I hate that as well. If there is one error, everything fails, leaving you an almost completely useless 'stack' of errors in which to find the cause.

This really must be fixed to make the Designer useable again.

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

Senior Member
Registered:
Posts: 71
Reply with quote  #6 
I have, what I think, is the same problem.

I'm working on a scripted business object and contrary to the documentation noted that a constructor accepting 0 arguments, I get almost 2000 "errors" in the solution. Wtf.

I also ran across this error when I copied a solution from a network share... after recopying, these errors were gone.

Problem is now I've run into the issue again... I guess I'm gonna have to roll back to an earlier version, lose whatever I've saved locally...

I thought I was done with chasing down these random errors with 9.

0
pdkaman

Senior Member
Registered:
Posts: 71
Reply with quote  #7 
Update to my problem... if I open an old copy of the solution from a few weeks ago, no issues and if I mouse over MetastormDefault, I can see the code tool tip as:
(aside: how do I post images to your site?)

Anywho, details are as follows:
I'm calling Mstm.SelectSql(new MetastormDefault(), strSQL).Text;

Hovering the mouse over MetastormDefault and you get the fully qualified name:
class Metastorm.Runtime.Models.MyProject.MetastormDefault

Now if I Retrieve the latest version from the Repository (this imiplies its been validated, no?) then the same line in the same server side script does not generate the appropriate tip and the Code Generation says:
The type or namespace name 'MetastormDefault' could not be found (are you missing a using reference?)

This is a pure 9 solution... nothing upgraded from 7.6.

Why is the designer all of sudden confused about this class?  And if I validate the procedure, I'll get an error for every form, component, etc.

Continuing to investigate... will report if I find something.

0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #8 
Quote:
Originally Posted by pdkaman
Update to my problem... if I open an old copy of the solution from a few weeks ago, no issues and if I mouse over MetastormDefault, I can see the code tool tip as:
(aside: how do I post images to your site?)

Anywho, details are as follows:
I'm calling Mstm.SelectSql(new MetastormDefault(), strSQL).Text;

Hovering the mouse over MetastormDefault and you get the fully qualified name:
class Metastorm.Runtime.Models.MyProject.MetastormDefault

Now if I Retrieve the latest version from the Repository (this imiplies its been validated, no?) then the same line in the same server side script does not generate the appropriate tip and the Code Generation says:
The type or namespace name 'MetastormDefault' could not be found (are you missing a using reference?)

This is a pure 9 solution... nothing upgraded from 7.6.

Why is the designer all of sudden confused about this class?  And if I validate the procedure, I'll get an error for every form, component, etc.

Continuing to investigate... will report if I find something.



This is a known issue, or a l;east I have documented it here a few years ago. You just have to add the fully qualification. I think it stilk happens.

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