Workflow and ServiceDesk Community

 View Only

Workflow - Plugin - Developer Guide - Advanced Plugin 

Jul 17, 2017 06:46 PM

In this Article I'm going to explain some more advanced features of Plugin creation.

Table of Contents

There is another Interface you can use to conditionally show a Plugin.

public class ProtirusPlugin : IConditionalPlugin

 

Implement the following method

ShowPlugin

This is from the Developer Guide.

public bool ShowPlugin()
{
    // To Update
    return (CurrentProjectHolder.GetInstance().Project.GetProjectType() == ProjectTypeEnum.maestro);
}

Gets a value indicating if the plugin should be displayed.

ProjectTypeEnum doesn't exist anymore but searching in the DLLs I found

namespace LogicBase.Tool.Common
public enum ProductType
{
    Maestro,
    Harmony,
    Metronome,
    Divo,
    Composer,
    Universal
}

Or

LogicBase.Tool
public static class ProjectType

string[] strArrays = new string[] { 
  ".Workflow", ".Decision", ".Integration", ".WebForms", 
  ".WinForms", ".Harmony", ".Maestro", ".Virtuoso", 
  ".Metronome", ".Monitoring", ".Composer", ".WinComposer" 
};

Pull in the following

using LogicBase.Core.Utilities;

 

Looking into this I couldn't find the matching Projects so I'm going to check the ProjectType another way.

ProjectTypeData ptd = CurrentProjectHolder.GetInstance().Project.ProjectSetupData.ProjectType;
Guid projectTypeId = ptd.ProjectTypeId;
string projectTypeName = ptd.ProjectTypeName;
Debug.Print(string.Format(@"ProjectTypeId {0} | ProjectTypeName {1}", projectTypeId, projectTypeName));

 

  • Decision Only.png LogicBase.Core.Models.Decision.DescisionProject, LogicBase.Core
  • Forms (Web).png LogicBase.Core.Models.Dialog.FormDialogProject, LogicBase.Core
  • Monitoring.png LogicBase.Core.Models.Monitoring.MonitoringProject, LogicBase.Core
  • App.png LogicBase.Core.Models.Flexi.FlexiProject, LogicBase.Core
  • WorkflowProject.png LogicBase.Core.Models.Workflow.WorkflowProject, LogicBase.Core
  • Int.png Integration

Protirus.png

Statistics
0 Favorited
2 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.