Invoke Custom Method

A forum for User Initated & Scheduled Workflows
Whitehorse
Posts: 3
Joined: Tue Apr 29, 2014 1:03 pm
Brief Company Description: http://www.aeieng.com
Number of Employees: 500
Company Position: Developer
Vision Modules: CRM / Proposals
Number of Offices: 0
Year Vision Installed: 2007

Invoke Custom Method

Postby Whitehorse » Tue Apr 29, 2014 1:40 pm

I created a simple .dll library that uses the AddInformation method so I can prompt users with information. I copied it to the Deltek\Vision\Workflow folder as directed. It appears in the Assembly list of the "Invoke Custom Method Configuration" dialog. However, it won't show my classes or methods. Has anyone experienced that before? Any ideas on a solution?

I'm using VS2010, and developed the .dll using C#.
Deltek API's/libraries referenced are:
Deltek.Vision.WorkflowAPI.Server.dll
Deltek.Framework.Ancestors.Server.dll
Deltek.Framework.API.Server.dll

The class I am testing this with is:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using Deltek.Vision.WorkflowAPI.Server;
using Deltek.Framework.Ancestors.Server;
using Deltek.Framework.API.Server;

namespace VisionCustomMethods
{
class VisionMethod : WorkflowBaseClass
{
public void sayhi()
{
AddInformation("Hi There");
}
public void saybye()
{
AddInformation("Bye-Bye Now");
}
}
}

Eric-GTS
Posts: 1
Joined: Wed Sep 24, 2014 12:37 pm
Brief Company Description: Engineering and Consulting Firm specializing in Natural Gas and Electric Industry
Deltek Vision Version: 7.0
Number of Employees: 190
Company Position: Database Administrator
Vision Modules: Project Control, Accounting, Billing, Time, Expense, Resource Planning, Payroll Interface, and Document Management
Number of Offices: 0
Year Vision Installed: 2011
Vision User Group: SF Bay Area

Re: Invoke Custom Method

Postby Eric-GTS » Wed Sep 24, 2014 12:50 pm

I don't know if you are still having an issue with this. I've come across this before with someone else. If public or private is not specified for classes, it seems the default is private. Make sure to specify

Code: Select all

public
before

Code: Select all

class VisionMethod : WorkflowBaseClass


Thanks,
Eric


Return to “User Initiated & Scheduled Workflows”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest