Arif's Profile
Agile Angel
2642
Points

Questions
19

Answers
200

  • Agile Angel Asked on November 3, 2017 in Agile PLM (v9).

    Hi Tapan,

    At times we have faced the issue due to method in use being deprecated.  Can you change your change status code as below and re-try.

    yourclass.changeStatus(next_status, true,”Some comments “, true, true,null, new Object[]{},null, false);

    Template for this method is as below : 
    public void changeStatus(IStatus newStatus,boolean auditRelease,String comment,boolean notifyOriginator,boolean notifyCCB,Object[] notifyList,Object[] approvers,Object[] observers,
    boolean urgent)

    Regards,
    Arif

    • 2780 views
    • 1 answers
    • 0 votes
  • Hi All,

    Finally Agile – SAML integration is working for us. After entering network credentials finally SAML url is redirecting it back to Agile URL. All this is achieved through weblogic configuration changes. 

    Once you are done with basic configurations, then much has to do with the ordering of providers, The ordering that worked for me was : 

    1. SAML 2.0 Identiry Assertion Provider  2. Weblogic Authentication Provider (Your default) 3. Agile Authentication Provider 4. Provider that performs LDAP Authentication 
    5. Trust Service Identity Assertion Provider. 

    Regards,
    Arif

    • 2928 views
    • 3 answers
    • 0 votes
  • Agile Angel Asked on October 25, 2017 in Agile PLM (v9).

    Hi,

    Follow along the sample , i just added a sample for loading a change and moving to a particular status. You can also follow along the above sample if you want to move to default next status and notify the user along the way. 

    import com.agile.api.*;

    public class ChangeStatusJava {

    /**
    * @param args
    */
    private static String url = “EnterYourServerURL”; /
    private static String username = “EnterUserName”;
    private static String password = “Password”; 
    public static IAgileSession m_session = null;  /
    public static AgileSessionFactory m_factory = null;
    public static IChange deviation = null;
    private static String mailServer = null;
    private static String mailFrom = “arifkhan@juniper.net”;
    private static String adminEmail = null;
    public static String expirationSucess = null;
    public static String CHANGE_NUMBER= “EnterYourChangeNumber”;

    public static void main(String[] args) {
    try {

    m_session = connectAgile(url, username, password);

    if (m_session != null)
      {
            IChange m_change = (IChange) m_session.getObject(ChangeConstants.CLASS_CHANGE_BASE_CLASS,CHANGE_NUMBER);

           /* You can try this syntax as well to load the change. 
             IChange m_change = (IChange) m_session.getObject(IChange.OBJECT_TYPE,CHANGE_NUMBER);
           */
             m_session.disableAllWarnings(); //Disable all warnings.
            m_change.changeStatus(m_change.getWorkflow().getStates(StatusConstants.TYPE_COMPLETE)[0], false,””, false, false, null, null, null, null, false);
     
          //You can specify StatusConstants.TYPE_RELEASED –> Workflow Status of Type Release , TYPE_COMPLETE –> Workflow Status of Type Complete,
           //You can accordingly specify change status TYPE_SUBMIT, TYPE_REVIEW,TYPE etc. 

            m_session.enableAllWarnings();
         } 
         }

    catch (APIException e) {
    // TODO: handle exception
    obj_logger.error(“Error while expiring deviation” + e.getMessage());
    e.printStackTrace();

    }
     finally {
    obj_logger.info(“==================== Execution of code is finished. ==============================”);
    }

    }

    public static final IAgileSession connectAgile(String url, String userid, String password) throws APIException {
    // TODO Auto-generated method stub
    m_factory = AgileSessionFactory.refreshInstance(url);
    HashMap<Integer, String> params = new HashMap<Integer, String>();
    params.put(AgileSessionFactory.USERNAME, userid);
    params.put(AgileSessionFactory.PASSWORD, password);
    m_session = m_factory.createSession(params);
    return m_session;
    }

    }

    • 4170 views
    • 15 answers
    • 0 votes
  • I agree with what Danny mentioned. . As per me the platform’s USP is “All things Agile PLM”, you get 99.99% relevant stuff. So whenever i enter an issue keyword, i am assured i will get helpful stuff and it will be worth my time here. Perhaps one of the reason i browse info here before going to Oracle knowledge base. 
    Expanding is not a bad option provided this current uniqueness is maintained.

    • 2528 views
    • 5 answers
    • 1 votes
  • Agile Angel Asked on October 20, 2017 in Agile PLM (v9).

    Hi All,

    Just trying to revive this old thread as working actively on this. One purge thing that is coming to my mind at the moment is Purging the Priceline and Prices data which are older then 5 years. 
    Has anyone tried, if yes then i would like to know about the approach you followed like deleting from Back-end / FE. 

    • 2230 views
    • 6 answers
    • 0 votes
  • As per the Oracle updates it seems Agile still don’t support SAML directly, but only via web services. If you wants to use SAML this can be done only via web services and not via web client. 
    Has anyone tried it. Also attaching the list of steps we followed for configuring on weblogic based on few blogs we came across. 

    Request you to share if you have any info.

    • 2928 views
    • 3 answers
    • 0 votes
  • Got the root cause of the issue. After going through server logs and executing A-Verify. The issue was due to one of the users assigned as Creator for a Sourcing project and Assigned user as Sign-off user was deleted. Updating the user with new id helped in resolving this issue.

    This answer accepted by Arif. on May 18, 2024 Earned 15 points.

    • 2302 views
    • 3 answers
    • 0 votes
  • Though The issue was fixed with server re-start., please share if anyone have encountered this issue. Also let me know the alternate approach employed.

    • 2302 views
    • 3 answers
    • 0 votes
  • Agile Angel Asked on September 22, 2017 in Agile PLM (v9).

    Hi Sumit,

    Not sure if you have a clustered or non-clustered environment. Easiest of the solution is two check status of your file manager nodes. If it’s down bring it up. 

    Here are Couple of reasons  and suggestion: 

    1.  The issue may be with your file manager server node.  Just verify if you are able to load them in browser.  Try to login to unix-box of server and do a re-start of node. 
    2.  If you have two servers and one is down, you can change your Preferred File Manager setting in user profile with one which is working. 
    3.  If its due to network issue then while trying to re-start the file manager server, you may encounter Error: 1053 then you have to ask for reboot of the server where you have hosted the FM servers. 

    Try it and let us know if it helps. 

    Regards,
    Arif

    • 2410 views
    • 2 answers
    • 0 votes
  • Agile Angel Asked on September 22, 2017 in Others.

    Hi Karthiga,

    Did you try adding Agile url in Exception tab of Java control panel. You can give it a shot, in case it doesn’t work try upgrading to jdk 1.8 and above and see if the issue persists. 

    Regards,
    Arif

    • 1600 views
    • 3 answers
    • 0 votes