/** * Clone off an activity from an existing activity. Used for * message start() are early reply operations. * * @param parent The currently running activity. The activity-specific settings are * inherited from the parent. * * @return A new activity. */ RexxActivity *ActivityManager::createNewActivity(RexxActivity *parent) { // create a new activity with the same priority as the parent RexxActivity *activity = createNewActivity(); // copy any needed settings from the parent activity->inheritSettings(parent); return activity; }
Activity * BfActStrategy::getNextActivity( NssComponentTree *nssComponentTree) { string methodName("BfActStrategy::getNextActivity"); // set activity type (for logging purposes) if (! nssParameters_.act_->setActivityType(actType_)) { throw SseException("tried to set invalid activity type: " + actType_ + " in " + methodName + "\n", __FILE__, __LINE__); } Activity *act = createNewActivity(nssComponentTree); return act; }