Dataflow in WFM

How UI() finds it's way and back

  1. WFMInterpreter::evaluateInstantiatedTerm
    checks for "UI" -> evaluateUI()
  2. WFMInterpreter::evaluateUI
    sends YCPB_FULLNAME to UI, then the term -> sendUnquoted()
  3. WFMInterpreter::sendUnquoted
    check if arguments need to be unquoted -> server->evaluate()
    server is the 'Y2Component *user_interface' as passed to the WFMInterpreter constructor
  4. server->evaluate() == component->evaluate()
    The liby2 component broker and creator ensure proper setup of the user_interface pointer. It points to the (in this case client) side of the UI server component. For plugin component, this goes directly to the server side (e.g. Y2PluginComponent::evaluate() calls comp->evaluate () which equals Y2QtComponent::evaluate()).
    For serial components, this is handled by sendTo() and reveiceFrom().

 

WFM Initialization