• Dreab
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies

I have a flow, it's launched using a button on the Account form. I passed the ID successfully, the flow works as expected. At the end of the flow process I simply want to return to the Account screen where it started. Seems easy enough but I've exhausted my limited knowledge. 

 

I'm thinking i will need to implement a process.plugin class but I can't figure out how to redirect the page and termintate the flow. 

 

An example or hints would be much appreciated..

 

Thanks

  • June 04, 2012
  • Like
  • 0

 

This is likely very basic stuff to an experienced person but unfortunelty that I am not..

 

I've spent hours on trying to put together a test method for this controller to override the standard save method. 

 

Any help would be greatly appreciated.

 

---------------------------------------------

 

public with sharing class myslider {

Client_Assessment__c Assessment;

public myslider(ApexPages.StandardController controller)
  {
    Assessment =(Client_Assessment__c )controller.getRecord();
  }

public void saveme()
  {
    update Assessment;
  }
/**
* Code coverage for saveme action
*/
public static testMethod void testSaveAction()
  {

  //Setup User

  User u1 = [select id from User where alias='dreab'];

  //Run As U1

  System.RunAs(u1)
   {
     Test.startTest();

     Test.stopTest();
   }
 }
}

  • March 02, 2012
  • Like
  • 0

 

This is likely very basic stuff to an experienced person but unfortunelty that I am not..

 

I've spent hours on trying to put together a test method for this controller to override the standard save method. 

 

Any help would be greatly appreciated.

 

---------------------------------------------

 

public with sharing class myslider {

Client_Assessment__c Assessment;

public myslider(ApexPages.StandardController controller)
  {
    Assessment =(Client_Assessment__c )controller.getRecord();
  }

public void saveme()
  {
    update Assessment;
  }
/**
* Code coverage for saveme action
*/
public static testMethod void testSaveAction()
  {

  //Setup User

  User u1 = [select id from User where alias='dreab'];

  //Run As U1

  System.RunAs(u1)
   {
     Test.startTest();

     Test.stopTest();
   }
 }
}

  • March 02, 2012
  • Like
  • 0