none
Activity Library question RRS feed

  • Question

  • Is there anyway to keep the pieces of a library activity from showing up when used in a workflow?

     

    I've created a library activity that contains a sequence activity and some QuestionAnswer activities. I want my library activity to show in other work flows as just one activity. I don't want all of the individual components to show as I don't want users to see how the activity is put together. I just want them to use it.

     

    Is this possible?

     

    Tuesday, October 30, 2007 7:43 PM

Answers

  • Hello Marshall,

     

    This is not quite the same as what you are doing but may lead you down the path you are wanting to head.

     

    I have a seperate NameSpace (and seperate folder for that matter) for a group of custom activities. When I drag and drop these custom activities from the toolbox onto the main call flow, all I see on the main call flow is a single activity icon that represents the instance of the custom activity.  I am not able to see any of the internal components from the main call flow.  In fact even if I use these custom activities within other custom activities, all I see is the single icon, no internal activities.

     

    My guess, and I have not tried this, is that if I were to put these custom activities into a seperate project and compile them into a DLL, and include the DLL in a host project, I would not see the internal workings of the custom activities.

     

    Tuesday, October 30, 2007 8:45 PM

All replies

  • Hello Marshall,

     

    This is not quite the same as what you are doing but may lead you down the path you are wanting to head.

     

    I have a seperate NameSpace (and seperate folder for that matter) for a group of custom activities. When I drag and drop these custom activities from the toolbox onto the main call flow, all I see on the main call flow is a single activity icon that represents the instance of the custom activity.  I am not able to see any of the internal components from the main call flow.  In fact even if I use these custom activities within other custom activities, all I see is the single icon, no internal activities.

     

    My guess, and I have not tried this, is that if I were to put these custom activities into a seperate project and compile them into a DLL, and include the DLL in a host project, I would not see the internal workings of the custom activities.

     

    Tuesday, October 30, 2007 8:45 PM
  • Hi Ken,

     

    That is pretty much what I did. How did you add them to your toolbar/project?

    Tuesday, October 30, 2007 9:13 PM
  • They are automatically added when I compile.  I don't do anything special.

     

     

     

    Tuesday, October 30, 2007 9:17 PM
  • This brings up the question - what is the best/proper way to add activity libraries to the toolbar?

    Tuesday, October 30, 2007 9:21 PM
  •  kstep wrote:

    They are automatically added when I compile.  I don't do anything special.

     

     

    How did that happen? It doesn't work that way for me.

    Tuesday, October 30, 2007 9:28 PM
  • Marshall,

     

    It just works.  My custom activities are part of the same project except I have put them in a sub-name space and folder to seperate them from the root folder of the application.  If everything does not compile properly, then they go away. As soon as I get a successful compile, they show up under a tab labled by the name of the project with the word Components, i.e. <project name> Components.

     

    When I create the custom activities I am deriving them from a Voice Response Sequence Activity (SpeechSequenceActivity).

     

    Are you jealous?

     

     

     

     

    Tuesday, October 30, 2007 9:38 PM
  • What, me jealous?

     

    I'm doing something different.

     

    I've created an Activity Library called GSActivityLib. In that I'm creating projects that are the components.

     

    When I create a new speech solution I add the .dll as a reference in the solution then I add it as a component to the toolbar.

     

    They are not separate projects in my speech solution. I guess that explains the different behaviour.

     

    Where you the Ken that sent me the email about custom activity suggestion?

     

     

    Tuesday, October 30, 2007 10:04 PM
  •  

    Yes what you are describing is how I have done things in the past as well.

     

    And yes, I am the one with the suggestion.

     

    Take Care.

    Tuesday, October 30, 2007 10:11 PM
  • I sent you a private email.

     

    P.S. You need to blog. :-)

     

    Tuesday, October 30, 2007 10:24 PM