Book a Demo

Author Topic: How to copy an Activity into an Activity that calls it?  (Read 6286 times)

ea1122

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
How to copy an Activity into an Activity that calls it?
« on: November 14, 2025, 12:47:07 am »
An activity has a Call(BehaviorAction) to Activity A which is not called anywhere else, so its contents should instead be copied into the calling activity. But when Activity A is copied, it cannot be pasted into the calling activity. Two methods were tried:
1. In browser, right-click Activity A, select Copy/FullStructureForDuplication.
Right-click the destination activity diagram, select Paste (only allows paste of an image).
2. In browser, drag Activity A to the destination activity diagram (allows only paste as an Invocation, Link, or Partition), select Partition (copies empty diagram with param. pins)
Does anyone know how to copy an Activity into an Activity that calls it?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13506
  • Karma: +572/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to copy an Activity into an Activity that calls it?
« Reply #1 on: November 14, 2025, 12:51:19 am »
You can simply move all Actions (and decisions, etc...) from ActivityA to the calling Activity (drag in project browser) and then put them on the diagram.
Then you can delete Activity A

Geert

ea1122

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: How to copy an Activity into an Activity that calls it?
« Reply #2 on: November 14, 2025, 04:24:15 am »
Thank you very much! That worked fine. For some reason the outer Activity diagram boundary disappeared, so I wonder how to restore that so that the Parameter pins and Action pins can be located there?