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 4334926
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:35:59+00:00 2026-05-21T10:35:59+00:00

How would you suggest going about implementing the following scenario. I have a few

  • 0

How would you suggest going about implementing the following scenario. I have a few thoughts, but none that satisfies my problem in totality, so I would like to get your input.

I am building a type of work-flow application. The user creates a pipeline of activities that then needs to be executed. The problem I face is this. Each “widget” in the pipeline must define what it can accept as input, and what it will produce as output. It can receive any number of input “streams” and also produce multiple “streams” of output. Now the problem occurs. These need to by dynamic. For instance, someone should be able to write a plugin for the application where he defines his own widget, with inputs and outputs. But other widgets need to be able to connect to it, so that they can send their output to the new one, or receive input from it.

How should one go about firstly exposing the list of acceptable inputs and outputs, and secondly, how can I calculate which method to call on the widget. For example if I want to send output from my widget to the new one, I need to be able to calculate if there is an acceptable receiving method (in which case there could be more than one), and secondly, I need to know the method to call to give the data to.

I have had a look at closure, delegates etc, which seem to be able to do what I need. Just thought I would get some more input first.

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-21T10:36:00+00:00Added an answer on May 21, 2026 at 10:36 am

    I would suggest that you enforce that all your components implement one or more interfaces allowing other components and the framework to use those interfaces to interrogate the component on what it can send and what it can receive.

    This will make your code more robust, and require less magic to work.

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

Sidebar

Related Questions

I have following classes: Container , Element and then couple of classes that inherit
We have an InnoDB database that is about 70 GB and we expect it
How would you tackle this problem: I have data in my data store. Each
What would you suggest as the best server stack for a dedicated server which
Which AMI would you suggest for CentOS 5.x 64-bit? There is quite a large
What algorithm would you suggest to identify how much from 0 to 1 (float)
I would like to create an object of Generics Type in java. Please suggest
As the title suggest, I would like to do the above. Example below: library(stringr)
Would following the table below be the best way of determining the access type
Would it be possible to add a new operator to the String class that

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.