Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6376513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:45:20+00:00 2026-05-25T01:45:20+00:00

I’ve a custom NativeActivity with a bunch of InArguments. It will always be the

  • 0

I’ve a custom NativeActivity with a bunch of InArguments. It will always be the root activity when the client is editing it’s workflow on a rehosted designer. So far so good.

The problem is, although InArguments are showed on PropertyInspector, no ‘Arguments’ tab is showed. I understand why it happens but I really want to make this NativeActivity to be the root activity for a variety of reasons: I can customize it on my way, I can give it a custom Designer, etc.

How can I had argument properties to a NativeActivity in a way that they’re showed on ‘Arguments’ tab within the designer making them available and allowing the client to do whatever he/she wants with the InArguments without the “‘argumentName’ is not declared. It may be inaccessible due to its protection level” think?

What I’ve tried:

  • Just like variables, where we can use a Collection{Variable} and the designer recognizes it as the place where the activity variables are, I’ve tried Collection{Argument}. No luck!
  • Simply write InArgument within NativeActivity. They’re showed on Property Inspector but can’t be used within the workflow through the designer. Again they cannot be resolved and”‘argumentName’ is not declared. It may be inaccessible due to its protection level” happens.
  • Bind previous InArguments to RuntimeArguments through CacheMetadata() using metadata.AddArgument() and metadata.Bind(). No luck whatsoever.

I known that ActivityBuilder is probably the best way to solve this. I successfully tried something like:

ActivityBuilder builder = new ActivityBuilder();
builder.Implementation = new MyCustomNativeActivity();

DynamicActivityProperty property = new DynamicActivityProperty()
{
 Name = "TestArg",
 Type = typeof(InArgument<string>),
};

builder.Properties.Add(property);

Designer.Load(builder);

But this leads to bad code because I’ve to had the arguments when I’m loading the designer. This prevents me from having a library with my custom activities separated from the forms code itself. Mainly because ActivityBuilder is a sealed class, much like DynamicActivity which, I assume, would work too.

Is there any way to simulate the ActivityBuilder behaviour, that allow to add properties at codetime, but using a NativeActivity which can be easily inherited and customized?

I hope I’ve made myself clear.

P.S.: I also took a look at IExecutionProperty but I didn’t understand well how it works, what’s its purpose and if it can be applied here.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:45:21+00:00Added an answer on May 25, 2026 at 1:45 am

    It seems that my problem is known and there’s no plan to support it on next WF releases.

    Links with explanations and a few workarounds: here and here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
I'm parsing an XML file, the creators of it stuck in a bunch social
I have a bunch of posts stored in text files formatted in yaml/textile (from
I am trying to loop through a bunch of documents I have to put
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.