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

  • SEARCH
  • Home
  • 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 8201601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:52:09+00:00 2026-06-07T06:52:09+00:00

I was looking through the samples available for Amazon SWF with Flow Framework (i.e.

  • 0

I was looking through the samples available for Amazon SWF with Flow Framework (i.e. Java)– in the samples I noticed that there is one class with a “main” that initiates workflow execution- there are also other similar classes with “main” that initiate workflow worker and activity worker (i.e. Workflow host and Activity Host).

Does this mean that to run a workflow, I have to put the execution code of all 3 classes into my void main? I.e. do I have to initiate the workflow host, activity host and start the workflow myself? Or do I just have to define WorkFlow Host and Activity Host classes in specified format, and then just initiate the workflow using Workflow client factory?

  • 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-06-07T06:52:11+00:00Added an answer on June 7, 2026 at 6:52 am

    There are three components in a SWF workflow – Worker, Activity and Client. Workflow host class initiates workflow workers, while activity host initiates activity workers. Workflow and Activity workers must always be up and running to work on the various workflow tasks. For this reason you have to include these classes in your void main.

    Client (using workflow client factory) can make a request to start a workflow whenever it needs to.

    Examples, for simplicity might have included all three classes in same main method, but ideally Client should be part of different application/main which can make call to start/end workflow whenever it wants, while activities and workers should run continuously.

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

Sidebar

Related Questions

So I was looking through some sample code in Script#'s samples. I noticed that
Looking through a few SQL implementations, I noticed that most DBMSs support defining an
Looking through Valence , there does not seem to be any samples of how
Looking through decimal.py , it uses NotImplemented in many special methods. e.g. class A(object):
Looking through the documentation for CFDataRef I can't see anything that will compress a
When looking through the documentation for SFML, I noticed the ability to rotate a
In looking through samples I have seen a number of examples where it is
Are there any good libraries or wrappers for Authorize.net ? The code samples available
I was looking online through samples of interview questions asked in the past by
I've been looking through the PRISM 2 samples for ideas about how to best

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.