How to call job to another job in MSD axapta using x++ code

How to call job to another job in axapta using x++ code

1. Create simple job job_test  and add it to action menu item in AOT.
2. Call job_test in other job using following code.

   Args                    args;
    ;
   
    args = new Args();
    args.name(identifierStr(Jobs_Test));
    new menuFunction(menuItemActionStr(Jobs_Test), MenuItemType::Action).run(args);

If you want to add job in action menuitem then just right click on aot menuitem on action type then create new menuitem. After that you can set that job in object selection property of menuitem.  You can not direction drag job to action menuitem.